aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2009-06-09 13:59:20 +0000
committerLeonardo Arena <rnalrd@gmail.com>2009-06-09 13:59:20 +0000
commit494ca527305b98de884a19c14dc307797eef5f12 (patch)
tree8d875f90a4a99702457ea37e945ab753f0bc2190
parent9da05bdea819bb7935368ad55c1563077478c28a (diff)
downloadaports-494ca527305b98de884a19c14dc307797eef5f12.tar.bz2
aports-494ca527305b98de884a19c14dc307797eef5f12.tar.xz
testing/amavisd-new: default run user/group changed to amavis
-rw-r--r--testing/amavisd-new/APKBUILD4
1 files changed, 3 insertions, 1 deletions
diff --git a/testing/amavisd-new/APKBUILD b/testing/amavisd-new/APKBUILD
index 6826aa55d4..ba60326be9 100644
--- a/testing/amavisd-new/APKBUILD
+++ b/testing/amavisd-new/APKBUILD
@@ -36,7 +36,9 @@ build() {
sed -e "s:^.*\$MYHOME = .*$:\$MYHOME = '$HOME';:" \
-e 's:^.*\$TEMPBASE = .*$:\$TEMPBASE = "\$MYHOME/tmp";:' \
-e 's:^.*\$db_home = .*$:\$db_home = "$MYHOME/db";:' \
- -e "s:^.*\$QUARANTINEDIR = .*$:\$QUARANTINEDIR = '$QUARANTINE';:"< amavisd.conf > amavisd.conf.alpine
+ -e "s:^.*\$QUARANTINEDIR = .*$:\$QUARANTINEDIR = '$QUARANTINE';:" \
+ -e "s:^.*\$daemon_user = 'vscan';\(.*\)$:\$daemon_user = 'amavis';\1:" \
+ -e "s:^.*\$daemon_group = 'vscan';\(.*\)$:\$daemon_group = 'amavis';\1:" < amavisd.conf > amavisd.conf.alpine
install -m 640 -o root -D amavisd.conf.alpine ${pkgdir}${CONFIG}
install -m 755 -D ../../amavisd.init $pkgdir/etc/init.d/amavisd
}