summaryrefslogtreecommitdiff
path: root/network/privoxy/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'network/privoxy/doinst.sh')
-rw-r--r--network/privoxy/doinst.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/network/privoxy/doinst.sh b/network/privoxy/doinst.sh
index 7d29feb84b..9187187491 100644
--- a/network/privoxy/doinst.sh
+++ b/network/privoxy/doinst.sh
@@ -1,4 +1,3 @@
-#!/bin/sh
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
@@ -21,6 +20,14 @@ else
chmod 0755 etc/rc.d/rc.privoxy.new
fi
+# If there's no existing log file, move this one over;
+# otherwise, kill the new one
+if [ ! -e var/log/privoxy/logfile ]; then
+ mv var/log/privoxy/logfile.new var/log/privoxy/logfile
+else
+ rm -f var/log/privoxy/logfile.new
+fi
+
config etc/rc.d/rc.privoxy.new
config etc/privoxy/templates/cgi-error-bad-param.new
config etc/privoxy/templates/cgi-error-disabled.new
@@ -57,9 +64,9 @@ config etc/privoxy/templates/edit-actions-for-url-filter.new
config etc/privoxy/templates/show-status.new
config etc/privoxy/templates/show-url-info.new
config etc/privoxy/default.action.new
-config etc/privoxy/standard.action.new
config etc/privoxy/user.action.new
config etc/privoxy/user.filter.new
config etc/privoxy/config.new
config etc/privoxy/trust.new
config etc/privoxy/default.filter.new
+config etc/privoxy/match-all.action.new