]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - config/rootfiles/core/142/update.sh
unbound/red.up: run unbound update-forwarders after suricata init.
[people/pmueller/ipfire-2.x.git] / config / rootfiles / core / 142 / update.sh
index 581e8fd195a1c95d267481846334edb82827c3b6..686e9ae89439dceb8b0abf221ce5e460b4cf40be 100644 (file)
@@ -88,13 +88,18 @@ rm -rf /usr/lib/python2.7/site-packages/ddns
 rm -rf /usr/lib/pppd/2.4.7
 
 # Stop services
+/etc/init.d/squid stop
+/etc/init.d/suricata stop
+
+# drop unbound remove and update forwarders
+rm -f /etc/rc.d/init.d/networking/red.down/05-*-dns-forwarders
 
 # Extract files
 extract_files
 
-# move update forwarders below firewall
-mv -f /etc/rc.d/init.d/netowrking/red.up/05-update-dns-forwarders \
-      /etc/rc.d/init.d/netowrking/red.up/22-update-dns-forwarders
+# move update forwarders below suricata
+mv -f /etc/rc.d/init.d/networking/red.up/*-update-dns-forwarders \
+      /etc/rc.d/init.d/networking/red.up/25-update-dns-forwarders
 
 # update linker config
 ldconfig
@@ -121,6 +126,9 @@ done
 /usr/local/bin/filesystem-cleanup
 
 # Start services
+/etc/init.d/unbound restart
+/etc/init.d/suricata start
+/etc/init.d/squid start
 
 # remove lm_sensor config after collectd was started
 # to reserch sensors at next boot with updated kernel