diff options
author | Mikhail Gusarov <dottedmag@dottedmag.net> | 2014-02-23 01:07:23 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-02-24 13:17:45 +0000 |
commit | 1e5c02555c1e4528526881e53da1a1bc31ed3506 (patch) | |
tree | e776d45d45842a49f1dc53f012640fb8a381a06e /debian/postinst | |
parent | 2078340a461fe76708966bb6e3cc0a945f0d0f7e (diff) | |
download | rspamd-1e5c02555c1e4528526881e53da1a1bc31ed3506.tar.gz rspamd-1e5c02555c1e4528526881e53da1a1bc31ed3506.zip |
/var/lib/rspamd ownership is fixed, don't allow to override
Diffstat (limited to 'debian/postinst')
-rw-r--r-- | debian/postinst | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/debian/postinst b/debian/postinst index 7c30263bd..578173981 100644 --- a/debian/postinst +++ b/debian/postinst @@ -19,13 +19,9 @@ case "$1" in --gecos "$SERVER_NAME" \ $SERVER_USER - # 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 - chmod u=rwx,g=rx,o= $SERVER_HOME - chmod u=rwx,g=rx,o=rx $SERVER_LOG - fi + 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_LOG ;; abort-*) |