From: Mikhail Gusarov Date: Tue, 12 Aug 2014 20:52:47 +0000 (+0200) Subject: Do not fail if there is no /_rspamd:_rspamd directory to be cleaned up X-Git-Tag: 0.6.10~1^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7be6cf894f534c3d951c58ef760bc8fc6d41faa;p=thirdparty%2Frspamd.git Do not fail if there is no /_rspamd:_rspamd directory to be cleaned up --- diff --git a/debian/postinst b/debian/postinst index 4e66851526..772631822e 100644 --- a/debian/postinst +++ b/debian/postinst @@ -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-*)