core89: Move converter to the end because collectd should be restarted at last
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 13 Apr 2015 09:39:08 +0000 (11:39 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 13 Apr 2015 09:39:08 +0000 (11:39 +0200)
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
 
        /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
 
 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
 
 # Fix permissions
 chown nobody.nobody /var/ipfire/dns