X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=debian%2Fpostinst;h=4f9a0e008c8f9fc50ec3d53333b7583bc16e86a9;hp=ccf2a17b1fd27b65d582aad6e666ae27e673eb0c;hb=6aa60a252059f209c5f3fb14502ad1deff7aba61;hpb=7f467813470e68568251847f70c1ba6c65c732c7 diff --git a/debian/postinst b/debian/postinst index ccf2a17b..4f9a0e00 100644 --- a/debian/postinst +++ b/debian/postinst @@ -25,15 +25,8 @@ set -e case "$1" in configure) - if ! adduser --quiet --system --home /etc/privoxy --no-create-home \ - --ingroup nogroup --disabled-password privoxy - then - # user privoxy seems to exist - # -> remove him before newly adding him. - deluser --quiet privoxy - adduser --quiet --system --home /etc/privoxy --no-create-home \ - --ingroup nogroup --disabled-password privoxy - fi + adduser --quiet --system --home /etc/privoxy --no-create-home \ + --ingroup nogroup --disabled-password privoxy chown -R privoxy.adm /var/log/privoxy chmod 750 /var/log/privoxy chown privoxy /etc/privoxy/user.action /etc/privoxy/trust