A small change in the post-receive hook. There are many others to come.

master
Robert Gerus 2013-08-25 23:51:23 +02:00
parent 98ed8fec9c
commit 8342b3f984
1 changed files with 3 additions and 3 deletions

View File

@ -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... "