contrib/package: make luci-app-statistics depend on a few collectd plugins
[project/luci.git] / applications / luci-statistics / root / etc / init.d / luci_statistics
index e4da1d5..21ed41e 100755 (executable)
@@ -18,14 +18,17 @@ start() {
                ln -s ${imagepath:-/tmp/rrdimg}/ /www/rrdimg
        fi
 
-    ### flush LuCI index cache
-    test -f /var/luci-indexcache && rm /var/luci-indexcache
+       ### flush LuCI index cache
+       test -f /var/luci-indexcache && rm /var/luci-indexcache
+
+       ### workaround broken permissions on /tmp
+       chmod 1777 /tmp
 }
 
 restart() {
-        ### regenerate config / prepare environment
-        start
+       ### regenerate config / prepare environment
+       start
 
-        ### restart collectd
-        /etc/init.d/collectd restart
+       ### restart collectd
+       /etc/init.d/collectd restart
 }