From: Peter Müller Date: Sun, 8 May 2022 12:00:10 +0000 (+0000) Subject: Core Update 168: Stop services before extracting files X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fd1e3e3c7417c14809b1fbbf8f7620c99053009b;p=people%2Fms%2Fipfire-2.x.git Core Update 168: Stop services before extracting files https://lists.ipfire.org/pipermail/development/2022-May/013398.html On a general note, we should do so for every Core Update, as it is more sane to stop services before deleting or overwriting any files. Reported-by: Stefan Schantl Signed-off-by: Peter Müller --- diff --git a/config/rootfiles/core/168/update.sh b/config/rootfiles/core/168/update.sh index fd475af3cb..1a45ad9cf2 100644 --- a/config/rootfiles/core/168/update.sh +++ b/config/rootfiles/core/168/update.sh @@ -31,6 +31,12 @@ for (( i=1; i<=$core; i++ )); do rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire done +# Stop services +/etc/init.d/squid stop +/usr/local/bin/openvpnctrl -k +/usr/local/bin/openvpnctrl -kn2n +/etc/init.d/suricata stop + # Remove files rm -rvf \ /lib/firmware/cxgb4/t4fw-1.26.4.0.bin \ @@ -67,12 +73,6 @@ rm -vf \ /opt/pakfire/db/meta/meta-netbpm \ /opt/pakfire/db/rootfiles/netbpm -# Stop services -/etc/init.d/squid stop -/usr/local/bin/openvpnctrl -k -/usr/local/bin/openvpnctrl -kn2n -/etc/init.d/suricata stop - # Extract files extract_files