From 4bc61018eec54dbe50e7556ce01d2ef2859b2c9f Mon Sep 17 00:00:00 2001 From: root Date: Thu, 9 Feb 2012 23:14:54 +0000 Subject: Thu Feb 9 23:14:54 UTC 2012 --- community-testing/privoxy/privoxy.install | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 community-testing/privoxy/privoxy.install (limited to 'community-testing/privoxy/privoxy.install') diff --git a/community-testing/privoxy/privoxy.install b/community-testing/privoxy/privoxy.install new file mode 100644 index 000000000..c3ed75111 --- /dev/null +++ b/community-testing/privoxy/privoxy.install @@ -0,0 +1,19 @@ +post_install() { + groupadd -g 42 privoxy &>/dev/null + useradd -u 42 -g privoxy -d /var/spool/privoxy -s /bin/false privoxy &>/dev/null + chown -R privoxy:privoxy /etc/privoxy /var/log/privoxy + + if [ ! -d /var/spool/privoxy ]; then + install -dm0770 -o privoxy -g privoxy /var/spool/privoxy + fi +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + userdel privoxy &>/dev/null + groupdel privoxy &>/dev/null + rm -rf var/spool/privoxy +} -- cgit v1.2.3-54-g00ecf