prevent package upgrade failures caused by sloppy postinstalls
[project/luci.git] / applications / luci-statistics / ipkg / postinst
1 #!/bin/sh
2 [ -n "${IPKG_INSTROOT}" ] || {
3         ( . /etc/uci-defaults/luci-statistics ) && rm -f /etc/uci-defaults/luci-statistics
4
5         /etc/init.d/luci_statistics enabled || /etc/init.d/luci_statistics enable
6         /etc/init.d/collectd enabled || /etc/init.d/collectd enable
7 }