]> source.dussan.org Git - rspamd.git/commitdiff
Fix permissions in package, don't change it in postinst
authorMikhail Gusarov <dottedmag@dottedmag.net>
Sun, 23 Feb 2014 08:37:15 +0000 (09:37 +0100)
committerMikhail Gusarov <dottedmag@dottedmag.net>
Sun, 23 Feb 2014 08:37:15 +0000 (09:37 +0100)
debian/postinst
debian/rules

index 4c39b569a77a489d2b8e4c4cb18006a497b7af54..6330486c2e5553f679260f81b2898e8ac41d8806 100644 (file)
@@ -20,8 +20,6 @@ case "$1" in
                $SERVER_USER
 
        chown $SERVER_USER: $SERVER_HOME $SERVER_LOG
-       chmod u=rwx,g=rx,o= $SERVER_HOME
-       chmod u=rwx,g=rx,o=rx $SERVER_LOG
     ;;
 
     abort-*)
index 1128635c2080f5ceea64691d7f74b369cdec16f2..c12157f3e122308006fe5a6f2f670fb18ede0239 100755 (executable)
@@ -26,3 +26,7 @@ override_dh_auto_configure:
 override_dh_auto_clean:
        dh_auto_clean
        rm -f src/modules.c
+
+override_dh_fixperms:
+       dh_fixperms
+       chmod 750 $(CURDIR)/debian/rspamd/var/lib/rspamd