From cb0e1804484cc3debd5e6ea8b7e2344ac7b9bd47 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 16 Feb 2009 17:43:43 +0000 Subject: contrib/package: make luci-app-statistics depend on a few collectd plugins applications/luci-statistics: implement a workaround for broken permissions on /tmp --- .../luci-statistics/root/etc/init.d/luci_statistics | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'applications/luci-statistics') diff --git a/applications/luci-statistics/root/etc/init.d/luci_statistics b/applications/luci-statistics/root/etc/init.d/luci_statistics index e4da1d5b1..21ed41ead 100755 --- a/applications/luci-statistics/root/etc/init.d/luci_statistics +++ b/applications/luci-statistics/root/etc/init.d/luci_statistics @@ -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 } -- cgit v1.2.3