diff options
-rw-r--r-- | testing/amavisd-new/common_vars | 8 | ||||
-rwxr-xr-x | testing/amavisd-new/post-install | 9 |
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 00000000..cb52b435 --- /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 00000000..310ead35 --- /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 |