aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-11-28 12:35:08 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-28 12:35:08 -0200
commitfb7e21267ae2dcb6c3431b415061b04d1dded3f9 (patch)
treeda973bb5c75b120b7086ebe0d49800c39dea113d /share
parent6cbde11ab4fed72113f88160f79f10065b2f10e7 (diff)
downloadtemplater-fb7e21267ae2dcb6c3431b415061b04d1dded3f9.tar.gz
templater-fb7e21267ae2dcb6c3431b415061b04d1dded3f9.tar.bz2
Prints hostname into into post-receive hooks
Diffstat (limited to 'share')
-rwxr-xr-xshare/templater/drupal8/files/bin/post-receive2
-rwxr-xr-xshare/templater/ikiwiki/files/bin/post-receive2
-rwxr-xr-xshare/templater/pushtodeploy/files/post-receive2
3 files changed, 4 insertions, 2 deletions
diff --git a/share/templater/drupal8/files/bin/post-receive b/share/templater/drupal8/files/bin/post-receive
index c9c0e79..070a34d 100755
--- a/share/templater/drupal8/files/bin/post-receive
+++ b/share/templater/drupal8/files/bin/post-receive
@@ -3,8 +3,6 @@
# Post-receive git hook.
#
-echo "Deploying on `cat /etc/hostname`..."
-
cd ..
unset GIT_DIR
make deploy
diff --git a/share/templater/ikiwiki/files/bin/post-receive b/share/templater/ikiwiki/files/bin/post-receive
index 627198d..4323c84 100755
--- a/share/templater/ikiwiki/files/bin/post-receive
+++ b/share/templater/ikiwiki/files/bin/post-receive
@@ -3,6 +3,8 @@
# Post-receive git hook
#
+echo "Deploying on `cat /etc/hostname`..."
+
cd ..
unset GIT_DIR
diff --git a/share/templater/pushtodeploy/files/post-receive b/share/templater/pushtodeploy/files/post-receive
index 3e706e9..c0c5a95 100755
--- a/share/templater/pushtodeploy/files/post-receive
+++ b/share/templater/pushtodeploy/files/post-receive
@@ -3,6 +3,8 @@
# Post-receive git hook
#
+echo "Deploying on `cat /etc/hostname`..."
+
# Go to repository base
cd ..
unset GIT_DIR