summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorSylvain Firmery <sylvain@firmery.fr>2014-11-08 20:05:54 +0100
committerSylvain Firmery <sylvain@firmery.fr>2014-11-08 20:05:54 +0100
commit2f891985bdc11e568c777e35d8e7bac5c1ec6f7a (patch)
tree755294676b65390b3bc18939e0e38fa1e6e3daa6 /debian
parentcc81f193cc94df818f63bd8eabb4feb2c86d29f8 (diff)
downloadrspamd-2f891985bdc11e568c777e35d8e7bac5c1ec6f7a.tar.gz
rspamd-2f891985bdc11e568c777e35d8e7bac5c1ec6f7a.zip
Fix owner when creating folder /run/rspamd
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/rspamd.init3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/rspamd.init b/debian/rspamd.init
index 0c84118da..b531304e4 100755
--- a/debian/rspamd.init
+++ b/debian/rspamd.init
@@ -40,7 +40,8 @@ do_start()
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
- mkdir -m 755 _rspamd:_rspamd -p /run/rspamd
+ mkdir -m 755 -p /run/rspamd
+ chown _rspamd:_rspamd /run/rspamd
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
|| return 1
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \