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}
|
echo 'include "'${rulefile}'"' >> ${TEMPFILE}
|
||||||
isok $? -q
|
isok $? -q
|
||||||
done
|
done
|
||||||
|
|
||||||
${MV} ${TEMPFILE} ${PFCONF_PATH}
|
|
||||||
isok $?
|
isok $?
|
||||||
|
|
||||||
echo -n "Testing if new config is sane... "
|
echo -n "Testing if new config is sane... "
|
||||||
${PFCTL} -nf ${PFCONF_PATH}
|
${PFCTL} -nf ${TEMPFILE}
|
||||||
|
isok $? -q
|
||||||
|
${MV} ${TEMPFILE} ${PFCONF_PATH}
|
||||||
isok $?
|
isok $?
|
||||||
|
|
||||||
echo -n "Loading new config... "
|
echo -n "Loading new config... "
|
||||||
|
|
Loading…
Reference in New Issue