X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=debian%2Fpostinst;h=4f9a0e008c8f9fc50ec3d53333b7583bc16e86a9;hp=ccf2a17b1fd27b65d582aad6e666ae27e673eb0c;hb=5ca5bab3ff890ad5ab50daf4cf0c22b4bb34b07f;hpb=3445ac73d9a18f4df13df1f40682a884ccebd572 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