summaryrefslogtreecommitdiffstats
path: root/hooks/post-receive
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/post-receive')
-rw-r--r--hooks/post-receive8
1 files changed, 6 insertions, 2 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
index 3ecfd11..fe4f5f6 100644
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -1,5 +1,6 @@
#!/bin/sh
set -e
+export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
WORK=/home/git/build/sites
@@ -33,8 +34,11 @@ for SITE in irc.gumx.cc vpn.gumx.cc mail.gumx.cc pgp.gumx.cc wk.fo twt.gumx.cc f
fi
done
+chmod +x /var/www/wk.fo/pks/cgi-bin/pgp-hkp.sh || true
+chmod +x /var/www/pgp.gumx.cc/cgi-bin/pgp-hkp.sh || true
+
# 404 page for sites outside this hook
-cp _shared/404.html /var/www/gumx.cc/404.html
-cp _shared/404.html /usr/share/webapps/cgit/404.html
+cp _shared/404.html /var/www/gumx.cc/404.html || true
+cp _shared/404.html /usr/share/webapps/cgit/404.html || true
echo "sites deployed"