From f7be6cf894f534c3d951c58ef760bc8fc6d41faa Mon Sep 17 00:00:00 2001 From: Mikhail Gusarov Date: Tue, 12 Aug 2014 22:52:47 +0200 Subject: [PATCH] Do not fail if there is no /_rspamd:_rspamd directory to be cleaned up --- debian/postinst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index 4e6685152..772631822 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-*) -- 2.39.5