aboutsummaryrefslogtreecommitdiff
path: root/ikiwiki/Makefile
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-08-07 14:58:19 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-08-07 14:58:19 -0300
commit1e381c5335b451a493a333b9639774e3d991a4de (patch)
tree353ab729c1ecb581bd38260155b6ba9d78526f2b /ikiwiki/Makefile
parent29c9ddc599a6cc0fe6f10ce15285f39d0d016acf (diff)
downloadtemplates-1e381c5335b451a493a333b9639774e3d991a4de.tar.gz
templates-1e381c5335b451a493a333b9639774e3d991a4de.tar.bz2
Adds post-receive hook and fix post-update
Diffstat (limited to 'ikiwiki/Makefile')
-rw-r--r--ikiwiki/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/ikiwiki/Makefile b/ikiwiki/Makefile
index 7fb2cc6..a9499b1 100644
--- a/ikiwiki/Makefile
+++ b/ikiwiki/Makefile
@@ -16,6 +16,21 @@
web:
@ikiwiki --setup ikiwiki.setup
+ @chmod +x bin/*
web_deploy:
+ #git push web
+ #git annex sync
@rsync -avz --delete www/ blog:/var/sites/blog/www/
+
+post_update:
+ git config receive.denyCurrentBranch ignore
+ cd .git/hooks && ln -sf ../../bin/post-update
+
+post_receive:
+ git config receive.denyCurrentBranch ignore
+ cd .git/hooks && ln -sf ../../bin/post-receive
+
+whoami:
+ git config user.name "User"
+ git config user.email user@example.org