A small change in the post-receive hook. There are many others to come.
parent
98ed8fec9c
commit
8342b3f984
|
@ -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... "
|
||||
|
|
Loading…
Reference in New Issue