aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLinux User <larena@df1844j.ita.wtbts.net>2009-06-06 17:31:19 +0000
committerLinux User <larena@df1844j.ita.wtbts.net>2009-06-06 17:31:19 +0000
commit5b473951fda9961f156f07c0af0179e1d76a2d7c (patch)
treeba41570b2126dc2e6f04efdc6a76995aad2f7ab1 /testing
parent99e9641675d72a43824c564ebadc6010e8df2991 (diff)
downloadaports-5b473951fda9961f156f07c0af0179e1d76a2d7c.tar.gz
aports-5b473951fda9961f156f07c0af0179e1d76a2d7c.tar.bz2
aports-5b473951fda9961f156f07c0af0179e1d76a2d7c.tar.xz
testing/amavisd-new: post-install added
Diffstat (limited to 'testing')
-rw-r--r--testing/amavisd-new/common_vars8
-rwxr-xr-xtesting/amavisd-new/post-install9
2 files changed, 17 insertions, 0 deletions
diff --git a/testing/amavisd-new/common_vars b/testing/amavisd-new/common_vars
new file mode 100644
index 0000000000..cb52b4351a
--- /dev/null
+++ b/testing/amavisd-new/common_vars
@@ -0,0 +1,8 @@
+#!/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
diff --git a/testing/amavisd-new/post-install b/testing/amavisd-new/post-install
new file mode 100755
index 0000000000..310ead353a
--- /dev/null
+++ b/testing/amavisd-new/post-install
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+. ../../common_vars
+
+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