]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Do not fail if there is no /_rspamd:_rspamd directory to be cleaned up
authorMikhail Gusarov <dottedmag@dottedmag.net>
Tue, 12 Aug 2014 20:52:47 +0000 (22:52 +0200)
committerMikhail Gusarov <dottedmag@dottedmag.net>
Tue, 12 Aug 2014 20:52:47 +0000 (22:52 +0200)
debian/postinst

index 4e66851526b7ebdf5d34e788519ddce4fd3bd75d..772631822e0590edeba56df2ebda46ee8cc00e1f 100644 (file)
@@ -20,7 +20,9 @@ case "$1" in
        chown $SERVER_USER: $SERVER_HOME $SERVER_LOG
 
        # Remove accidentally created directory (<= 05.05.2014)
-       rmdir /_rspamd:_rspamd
+       if [ -d /_rspamd:_rspamd ]; then
+           rmdir /_rspamd:_rspamd
+       fi
     ;;
 
     abort-*)