core89: Move converter to the end because collectd should be restarted at last
[ipfire-2.x.git] / config / rootfiles / core / 89 / update.sh
index 435b453..bb6c7a5 100644 (file)
@@ -68,16 +68,16 @@ rm -f \
        /opt/pakfire/db/*/meta-sqlite \
        /opt/pakfire/db/rootfiles/sqlite
 
-# Update OpenVPN/collectd configuration
-/usr/sbin/ovpn-collectd-convert
-chown nobody.nobody /var/ipfire/ovpn/collectd.vpn
-
 mkdir -p /var/run/openvpn
 touch /var/run/ovpnserver.log
 chown nobody.nobody \
        /var/run/openvpn \
        /var/run/ovpnserver.log
 
+# Update OpenVPN/collectd configuration
+/usr/sbin/ovpn-collectd-convert
+chown nobody.nobody /var/ipfire/ovpn/collectd.vpn
+
 # Fix permissions
 chown nobody.nobody /var/ipfire/dns