From 8342b3f984dfbab891bc5431e61be2115a5dea61 Mon Sep 17 00:00:00 2001 From: Robert Gerus Date: Sun, 25 Aug 2013 23:51:23 +0200 Subject: [PATCH] A small change in the post-receive hook. There are many others to come. --- hooks/post-receive | 6 +++--- 1 file 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... "