aboutsummaryrefslogtreecommitdiff
path: root/www/privoxy/files/privoxy.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/privoxy/files/privoxy.in')
-rw-r--r--www/privoxy/files/privoxy.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/www/privoxy/files/privoxy.in b/www/privoxy/files/privoxy.in
index 56814f098e08..5e44c6497868 100644
--- a/www/privoxy/files/privoxy.in
+++ b/www/privoxy/files/privoxy.in
@@ -34,6 +34,11 @@ load_rc_config ${name}
: ${privoxy_user="privoxy"}
: ${privoxy_pidfile="/var/run/privoxy/privoxy.pid"}
+start_precmd="if [ ! -e ${privoxy_config} ]; then\
+ echo ${privoxy_config} not found. Copying default configuration.;\
+ cp %%PREFIX%%/share/examples/privoxy/config ${privoxy_config};\
+ chown ${privoxy_user}:${privoxy_user} ${privoxy_config};\
+fi"
command="%%PREFIX%%/sbin/privoxy"
command_args="${privoxy_flags} --pidfile ${privoxy_pidfile} ${privoxy_config}"