summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2014-12-16 17:57:19 +0100
committerMichael Scherer <misc@zarb.org>2014-12-16 17:57:19 +0100
commitcc7cc8f8f1b6f3771d6d885744edf23bb99a0914 (patch)
tree5a503f0d9a710f3761d45e4e08cd13742fcab69c
parent32252461608da9a268e91f82078595815d2e1eee (diff)
Make sure to use a absolute link ( since GIT_DIR =., it fail )
-rw-r--r--roles/local_deploy/files/post-receive.private.sh2
-rw-r--r--roles/local_deploy/files/post-receive.public.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/local_deploy/files/post-receive.private.sh b/roles/local_deploy/files/post-receive.private.sh
index 527c520..8d416ca 100644
--- a/roles/local_deploy/files/post-receive.private.sh
+++ b/roles/local_deploy/files/post-receive.private.sh
@@ -1,2 +1,2 @@
#!/bin/sh
-sudo /usr/local/bin/extract_wrapper.sh
+sudo /usr/local/bin/extract_wrapper.sh $(readlink -e $GIT_DIR)
diff --git a/roles/local_deploy/files/post-receive.public.sh b/roles/local_deploy/files/post-receive.public.sh
index adcfa80..04d2830 100644
--- a/roles/local_deploy/files/post-receive.public.sh
+++ b/roles/local_deploy/files/post-receive.public.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-sudo /usr/local/bin/extract_wrapper.sh $GIT_DIR
+sudo /usr/local/bin/extract_wrapper.sh $(readlink -e $GIT_DIR)
#GIT_WORK_TREE=/etc/ansible/ git checkout -q -f
# run ansible
sudo /usr/local/bin/ansible_run.sh