add pfhup
This commit is contained in:
parent
adb613374b
commit
7710b76758
19
remote/pfhup
Executable file
19
remote/pfhup
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ "$(id -u)" -ne 0 ]; then
|
||||||
|
printf 'Needs to be run only from the ssl-update service.\n' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$ssl_service" ]; then
|
||||||
|
printf 'Needs to be run only from the ssl-update service.\n' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
pfctl -n -f /etc/pf.conf
|
||||||
|
if [ $? != 0 ]; then
|
||||||
|
printf 'Will not restart with a config error.\n' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
pfctl -d
|
||||||
|
pfctl -e -f /etc/pf.conf
|
Loading…
x
Reference in New Issue
Block a user