summaryrefslogtreecommitdiff
path: root/package/privoxy/files/privoxy.postinst
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-11-15 20:40:10 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2009-11-15 20:40:10 +0100
commit75f2ac2312c3b98e94bb98941074fa85aba03841 (patch)
tree357980aaa9a4e6b4e892433fcec02ec59dd886a6 /package/privoxy/files/privoxy.postinst
parent4fc73402ed1cec95693ee5e8549cef6c3079717f (diff)
update privoxy package
- add /etc/privoxy - add postinst script for user/group add - add init script
Diffstat (limited to 'package/privoxy/files/privoxy.postinst')
-rw-r--r--package/privoxy/files/privoxy.postinst7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/privoxy/files/privoxy.postinst b/package/privoxy/files/privoxy.postinst
new file mode 100644
index 000000000..105b430c2
--- /dev/null
+++ b/package/privoxy/files/privoxy.postinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+
+gid=$(get_next_gid)
+add_user privoxy $(get_next_uid) $gid /etc/privoxy
+add_group privoxy $gid
+add_rcconf privoxy privoxy NO