aboutsummaryrefslogtreecommitdiffstats
path: root/main/amavisd-new/amavisd-new.post-install
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-08-19 07:45:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-08-19 07:45:34 +0000
commit87239ae6b56c9bdac3676c2e7c11bc5aedb9855d (patch)
treede0e83df59421238560b2061367a73458333857f /main/amavisd-new/amavisd-new.post-install
parent3b485b56c7cd847d57795dc259642418a555de15 (diff)
downloadaports-87239ae6b56c9bdac3676c2e7c11bc5aedb9855d.tar.bz2
aports-87239ae6b56c9bdac3676c2e7c11bc5aedb9855d.tar.xz
main/amavisd-new: create users in pre-install, set perms in post-install
remove use of users in APKBUILD, we still dont support this, but will later
Diffstat (limited to 'main/amavisd-new/amavisd-new.post-install')
-rwxr-xr-xmain/amavisd-new/amavisd-new.post-install15
1 files changed, 3 insertions, 12 deletions
diff --git a/main/amavisd-new/amavisd-new.post-install b/main/amavisd-new/amavisd-new.post-install
index 56cad39f52..2c5ea2cf65 100755
--- a/main/amavisd-new/amavisd-new.post-install
+++ b/main/amavisd-new/amavisd-new.post-install
@@ -1,14 +1,5 @@
#!/bin/sh
-HOME=/var/amavis
-QUARANTINE=$HOME/quarantine
-USER=amavis
-GROUP=amavis
-DIRS="$HOME $HOME/tmp $HOME/var $HOME/db $HOME/home $QUARANTINE"
-CONFIG=/etc/amavisd.conf
-
-addgroup $USER
-adduser -h $HOME -s /bin/false -G $GROUP -D $USER
-chown -R $USER:$GROUP $HOME
-chmod -R 750 $HOME
-chown root:$GROUP $CONFIG
+chown -R amavis:amavis /var/amavis
+chmod -R 750 /var/amavis
+chown root:amavis /etc/amavisd.conf