]> source.dussan.org Git - rspamd.git/commitdiff
/var/lib/rspamd ownership is fixed, don't allow to override
authorMikhail Gusarov <dottedmag@dottedmag.net>
Sun, 23 Feb 2014 00:07:23 +0000 (01:07 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 24 Feb 2014 13:17:45 +0000 (13:17 +0000)
debian/postinst

index 7c30263bdf984c3a0e288c740cfb9475f84c6f30..578173981b723e2b7ff40a39297f0f67e633bf32 100644 (file)
@@ -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-*)