mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-19 15:32:59 +02:00
core115: Add captive portal cron jobs to updater
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -48,6 +48,14 @@ ldconfig
|
||||
openvpnctrl -s
|
||||
openvpnctrl -sn2n
|
||||
|
||||
grep -q "captivectrl" /var/spool/cron/root.orig || cat <<EOF >> /var/spool/cron/root.orig
|
||||
# Cleanup captive clients
|
||||
%hourly * /usr/bin/captive-cleanup
|
||||
|
||||
# Reload captive firewall rules
|
||||
%nightly * 23-1 /usr/local/bin/captivectrl >/dev/null
|
||||
EOF
|
||||
fcrontab -z
|
||||
|
||||
# This update need a reboot...
|
||||
#touch /var/run/need_reboot
|
||||
|
||||
Reference in New Issue
Block a user