mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-11 09:48:24 +02:00
Core Update 171: Only start services if they are actually enabled
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
@@ -148,12 +148,18 @@ ldconfig
|
||||
/usr/local/bin/filesystem-cleanup
|
||||
|
||||
# Start services
|
||||
/etc/init.d/squid start
|
||||
/etc/init.d/openvpn start
|
||||
if grep -q "ENABLED=on" /var/ipfire/ovpn/settings; then
|
||||
/etc/init.d/openvpn start
|
||||
fi
|
||||
|
||||
if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then
|
||||
/etc/init.d/ipsec start
|
||||
fi
|
||||
|
||||
if -f /var/ipfire/proxy/enable; then
|
||||
/etc/init.d/squid start
|
||||
fi
|
||||
|
||||
# This update needs a reboot...
|
||||
touch /var/run/need_reboot
|
||||
|
||||
|
||||
Reference in New Issue
Block a user