From f184e63df7e55df62db45e52974f093f8558e86e Mon Sep 17 00:00:00 2001 From: Mikhail Gusarov Date: Sun, 23 Feb 2014 01:07:23 +0100 Subject: [PATCH] /var/lib/rspamd ownership is fixed, don't allow to override --- debian/postinst | 10 +++------- 1 file 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-*) -- 2.39.5