aboutsummaryrefslogtreecommitdiffstats
path: root/debian/postinst
diff options
context:
space:
mode:
authorMikhail Gusarov <dottedmag@dottedmag.net>2014-02-23 00:59:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-02-24 13:17:45 +0000
commit2078340a461fe76708966bb6e3cc0a945f0d0f7e (patch)
treee019f907dea6e637a6d0eaab3c8f4b8768441cb8 /debian/postinst
parentff2954a1a8e76cf44cf15ba1702d5a36b86499c0 (diff)
downloadrspamd-2078340a461fe76708966bb6e3cc0a945f0d0f7e.tar.gz
rspamd-2078340a461fe76708966bb6e3cc0a945f0d0f7e.zip
/var/run is transient, create subdirectory in initscript instead
Diffstat (limited to 'debian/postinst')
-rw-r--r--debian/postinst7
1 files changed, 1 insertions, 6 deletions
diff --git a/debian/postinst b/debian/postinst
index bfd3a53c4..7c30263bd 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -6,7 +6,6 @@ set -e
case "$1" in
configure)
SERVER_HOME=/var/lib/rspamd
- SERVER_RUN=/var/run/rspamd
SERVER_LOG=/var/log/rspamd
SERVER_USER=rspamd
SERVER_NAME="Rspamd spam filtering system"
@@ -20,15 +19,11 @@ case "$1" in
--gecos "$SERVER_NAME" \
$SERVER_USER
- # 2. create homedir if not existing
- test -d $SERVER_RUN || mkdir $SERVER_RUN
-
# 5. adjust file and directory permissions
if ! dpkg-statoverride --list $SERVER_HOME >/dev/null
then
- chown -R $SERVER_USER:$SERVER_GROUP $SERVER_HOME $SERVER_LOG $SERVER_RUN
+ chown -R $SERVER_USER:$SERVER_GROUP $SERVER_HOME $SERVER_LOG
chmod u=rwx,g=rx,o= $SERVER_HOME
- chmod u=rwx,g=rx,o=rx $SERVER_RUN
chmod u=rwx,g=rx,o=rx $SERVER_LOG
fi
;;