From 5b473951fda9961f156f07c0af0179e1d76a2d7c Mon Sep 17 00:00:00 2001 From: Linux User <larena@df1844j.ita.wtbts.net> Date: Sat, 6 Jun 2009 17:31:19 +0000 Subject: [PATCH] testing/amavisd-new: post-install added --- testing/amavisd-new/common_vars | 8 ++++++++ testing/amavisd-new/post-install | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 testing/amavisd-new/common_vars create mode 100755 testing/amavisd-new/post-install diff --git a/testing/amavisd-new/common_vars b/testing/amavisd-new/common_vars new file mode 100644 index 000000000000..cb52b4351aac --- /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 000000000000..310ead353a17 --- /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 -- GitLab