Use numeric prefixes for uci-defaults scripts
[project/luci.git] / applications / luci-app-radicale / root / etc / uci-defaults / 40_luci-radicale
diff --git a/applications/luci-app-radicale/root/etc/uci-defaults/40_luci-radicale b/applications/luci-app-radicale/root/etc/uci-defaults/40_luci-radicale
new file mode 100755 (executable)
index 0000000..333ca65
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# no longer needed for "Save and Apply" to restart radicale
+# luci-app-radicale calls /etc/init.d/radicale reload
+uci -q batch <<-EOF >/dev/null
+       delete ucitrack.@radicale[-1]
+       commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+
+exit 0