mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
core92: stop/start squid at update.
This commit is contained in:
@@ -32,6 +32,7 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Stop services
|
# Stop services
|
||||||
|
/etc/init.d/squid stop
|
||||||
/etc/init.d/ipsec stop
|
/etc/init.d/ipsec stop
|
||||||
|
|
||||||
# Extract files
|
# Extract files
|
||||||
@@ -44,12 +45,12 @@ extract_files
|
|||||||
sudo -u nobody /srv/web/ipfire/cgi-bin/vpnmain.cgi
|
sudo -u nobody /srv/web/ipfire/cgi-bin/vpnmain.cgi
|
||||||
|
|
||||||
rm -f /bin/[
|
rm -f /bin/[
|
||||||
sync
|
|
||||||
|
|
||||||
# Start services
|
# Start services
|
||||||
if [ `grep "ENABLED=on" /var/ipfire/vpn/settings` ]; then
|
if [ `grep "ENABLED=on" /var/ipfire/vpn/settings` ]; then
|
||||||
/etc/init.d/ipsec start
|
/etc/init.d/ipsec start
|
||||||
fi
|
fi
|
||||||
|
/etc/init.d/squid start
|
||||||
|
|
||||||
# This update need a reboot...
|
# This update need a reboot...
|
||||||
touch /var/run/need_reboot
|
touch /var/run/need_reboot
|
||||||
@@ -61,6 +62,7 @@ sendprofile
|
|||||||
if [ -e /boot/grub/grub.cfg ]; then
|
if [ -e /boot/grub/grub.cfg ]; then
|
||||||
grub-mkconfig > /boot/grub/grub.cfg
|
grub-mkconfig > /boot/grub/grub.cfg
|
||||||
fi
|
fi
|
||||||
|
sync
|
||||||
|
|
||||||
# Don't report the exitcode last command
|
# Don't report the exitcode last command
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user