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