core92: stop/start squid at update.

This commit is contained in:
Arne Fitzenreiter
2015-07-09 15:20:35 +02:00
parent 12553c69cf
commit f7c98d3df1

View File

@@ -32,6 +32,7 @@ do
done
# Stop services
/etc/init.d/squid stop
/etc/init.d/ipsec stop
# Extract files
@@ -44,12 +45,12 @@ extract_files
sudo -u nobody /srv/web/ipfire/cgi-bin/vpnmain.cgi
rm -f /bin/[
sync
# Start services
if [ `grep "ENABLED=on" /var/ipfire/vpn/settings` ]; then
/etc/init.d/ipsec start
fi
/etc/init.d/squid start
# This update need a reboot...
touch /var/run/need_reboot
@@ -61,6 +62,7 @@ sendprofile
if [ -e /boot/grub/grub.cfg ]; then
grub-mkconfig > /boot/grub/grub.cfg
fi
sync
# Don't report the exitcode last command
exit 0