mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 14:03:00 +02:00
Core Update 179: Only start services if they are enabled
Doing so avoids situations where a service is started without being configured to do so, thus reducing the potential for confusion and exposure of services not intended to be exposed by the user. Signed-off-by: Peter Müller <peter.mueller@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
3dcbb53a21
commit
fb7869feb2
@@ -86,9 +86,13 @@ migrate_extrahd
|
||||
|
||||
# Start services
|
||||
/etc/init.d/udev restart
|
||||
/etc/init.d/squid restart
|
||||
/usr/local/bin/openvpnctrl -s
|
||||
/usr/local/bin/openvpnctrl -sn2n
|
||||
if [ -f /var/ipfire/proxy/enable ]; then
|
||||
/etc/init.d/squid restart
|
||||
fi
|
||||
if grep -q "ENABLED=on" /var/ipfire/ovpn/settings; then
|
||||
/usr/local/bin/openvpnctrl -s
|
||||
/usr/local/bin/openvpnctrl -sn2n
|
||||
fi
|
||||
|
||||
# This update needs a reboot...
|
||||
touch /var/run/need_reboot
|
||||
|
||||
Reference in New Issue
Block a user