summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-radicale/root
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-radicale/root')
-rwxr-xr-xapplications/luci-app-radicale/root/etc/uci-defaults/luci-radicale12
1 files changed, 12 insertions, 0 deletions
diff --git a/applications/luci-app-radicale/root/etc/uci-defaults/luci-radicale b/applications/luci-app-radicale/root/etc/uci-defaults/luci-radicale
new file mode 100755
index 000000000..333ca65f4
--- /dev/null
+++ b/applications/luci-app-radicale/root/etc/uci-defaults/luci-radicale
@@ -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