applications: revise uci-defaults scripts
[project/luci.git] / applications / luci-ushare / root / etc / uci-defaults / luci-ushare
old mode 100644 (file)
new mode 100755 (executable)
index 262420e..8bcb6e4
@@ -1,7 +1,11 @@
 #!/bin/sh
 
-uci batch <<-EOF
+uci -q batch <<-EOF >/dev/null
+       delete ucitrack.@ushare[-1]
        add ucitrack ushare
        set ucitrack.@ushare[-1].init=ushare
        commit ucitrack
 EOF
+
+rm -f /tmp/luci-indexcache
+exit 0