summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Gerus <arachnist@i.am-a.cat>2013-08-25 23:51:23 +0200
committerRobert Gerus <arachnist@i.am-a.cat>2013-08-25 23:51:23 +0200
commit8342b3f984dfbab891bc5431e61be2115a5dea61 (patch)
tree9ec686b2d74d19280831cf1f760597b2caba520c
parent98ed8fec9cbfa6f05518562440289792c62f6479 (diff)
downloadhs-fw-8342b3f984dfbab891bc5431e61be2115a5dea61.tar.gz
hs-fw-8342b3f984dfbab891bc5431e61be2115a5dea61.tar.bz2
hs-fw-8342b3f984dfbab891bc5431e61be2115a5dea61.tar.xz
hs-fw-8342b3f984dfbab891bc5431e61be2115a5dea61.zip
A small change in the post-receive hook. There are many others to come.HEADmaster
-rwxr-xr-xhooks/post-receive6
1 files changed, 3 insertions, 3 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
index 9c2838b..9b8b7fe 100755
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -44,12 +44,12 @@ for rulefile in /etc/firewall/rules.d/*; do
echo 'include "'${rulefile}'"' >> ${TEMPFILE}
isok $? -q
done
-
-${MV} ${TEMPFILE} ${PFCONF_PATH}
isok $?
echo -n "Testing if new config is sane... "
-${PFCTL} -nf ${PFCONF_PATH}
+${PFCTL} -nf ${TEMPFILE}
+isok $? -q
+${MV} ${TEMPFILE} ${PFCONF_PATH}
isok $?
echo -n "Loading new config... "