diff options
author | Robert Gerus <arachnist@i.am-a.cat> | 2013-08-25 23:51:23 +0200 |
---|---|---|
committer | Robert Gerus <arachnist@i.am-a.cat> | 2013-08-25 23:51:23 +0200 |
commit | 8342b3f984dfbab891bc5431e61be2115a5dea61 (patch) | |
tree | 9ec686b2d74d19280831cf1f760597b2caba520c | |
parent | 98ed8fec9cbfa6f05518562440289792c62f6479 (diff) | |
download | hs-fw-master.tar.gz hs-fw-master.tar.bz2 hs-fw-master.tar.xz hs-fw-master.zip |
-rwxr-xr-x | hooks/post-receive | 6 |
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... " |