]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Core Update 182: Ship and restart Squid
authorPeter Müller <peter.mueller@ipfire.org>
Tue, 21 Nov 2023 19:06:27 +0000 (19:06 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Tue, 21 Nov 2023 19:06:27 +0000 (19:06 +0000)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
config/rootfiles/core/182/filelists/squid [new symlink]
config/rootfiles/core/182/update.sh

diff --git a/config/rootfiles/core/182/filelists/squid b/config/rootfiles/core/182/filelists/squid
new file mode 120000 (symlink)
index 0000000..2dc8372
--- /dev/null
@@ -0,0 +1 @@
+../../../common/squid
\ No newline at end of file
index 061f9dc8751995bf3bfc0157f91b4a8a2141617c..b54082567495d2383063768b718dcbfeee23493d 100644 (file)
@@ -32,6 +32,7 @@ for (( i=1; i<=$core; i++ )); do
 done
 
 # Stop services
+/etc/rc.d/init.d/squid stop
 
 # Extract files
 extract_files
@@ -50,6 +51,9 @@ ldconfig
 /usr/local/bin/filesystem-cleanup
 
 # Start services
+if [ -f /var/ipfire/proxy/enable ]; then
+       /etc/init.d/squid start
+fi
 
 # This update needs a reboot...
 #touch /var/run/need_reboot