]> source.dussan.org Git - rspamd.git/commitdiff
Ship /var/{lib,log}/rspamd in package
authorMikhail Gusarov <dottedmag@dottedmag.net>
Sat, 22 Feb 2014 23:57:37 +0000 (00:57 +0100)
committerMikhail Gusarov <dottedmag@dottedmag.net>
Sun, 23 Feb 2014 00:02:07 +0000 (01:02 +0100)
debian/dirs [new file with mode: 0644]
debian/postinst

diff --git a/debian/dirs b/debian/dirs
new file mode 100644 (file)
index 0000000..33f9176
--- /dev/null
@@ -0,0 +1,2 @@
+var/lib/rspamd
+var/log/rspamd
index a5c88db5bd3bd1c4b16367b48681fd983b44f0b5..bfd3a53c4002e3f7422dcdac77795445ce70e9de 100644 (file)
@@ -21,9 +21,7 @@ case "$1" in
                $SERVER_USER
 
        # 2. create homedir if not existing
-       test -d $SERVER_HOME || mkdir $SERVER_HOME
        test -d $SERVER_RUN || mkdir $SERVER_RUN
-       test -d $SERVER_LOG || mkdir $SERVER_LOG
 
        # 5. adjust file and directory permissions
        if ! dpkg-statoverride --list $SERVER_HOME >/dev/null