updated on Wed Jan 18 20:10:41 UTC 2012
[aur-mirror.git] / privoxy-cvs / privoxy.install
blobc3ed75111811f71ec085f668e5bfaaabe6786435
1 post_install() {
2   groupadd -g 42 privoxy &>/dev/null
3   useradd -u 42 -g privoxy -d /var/spool/privoxy -s /bin/false privoxy &>/dev/null
4   chown -R privoxy:privoxy /etc/privoxy /var/log/privoxy
6   if [ ! -d /var/spool/privoxy ]; then
7     install -dm0770 -o privoxy -g privoxy /var/spool/privoxy
8   fi
11 post_upgrade() {
12   post_install $1
15 pre_remove() {
16   userdel privoxy &>/dev/null
17   groupdel privoxy &>/dev/null
18   rm -rf var/spool/privoxy