luci/applications/luci-app-statistics/root/etc/uci-defaults/40_luci-statistics
Florian Eckert 1f8a3c0417 luci.mk: move /tmp/luci-indexcache remove to package postinst script
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-02-14 09:20:33 +01:00

15 lines
333 B
Bash
Executable file

#!/bin/sh
# register commit handler
uci -q batch <<-EOF >/dev/null
delete ucitrack.@luci_statistics[-1]
add ucitrack luci_statistics
set ucitrack.@luci_statistics[-1].init=luci_statistics
commit ucitrack
EOF
# symlink for busybox httpd
[ -x /usr/sbin/httpd ] && [ ! -h /www/rrdimg ] && \
ln -s /tmp/rrdimg /www/rrdimg
exit 0