From 37b0bfdac61f29e35da12cc2e434bf41e9cbe95f Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 18 Apr 2020 22:26:52 +0200 Subject: [PATCH] Don't delete folder which are not created... (#3484) ... in the script. And changed the order to be consistent. --- data/Dockerfiles/dovecot/sa-rules.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/Dockerfiles/dovecot/sa-rules.sh b/data/Dockerfiles/dovecot/sa-rules.sh index 1641a992..ee6abbed 100755 --- a/data/Dockerfiles/dovecot/sa-rules.sh +++ b/data/Dockerfiles/dovecot/sa-rules.sh @@ -1,8 +1,8 @@ #!/bin/bash # Create temp directories -#[[ ! -d /tmp/sa-rules-schaal ]] && mkdir -p /tmp/sa-rules-schaal [[ ! -d /tmp/sa-rules-heinlein ]] && mkdir -p /tmp/sa-rules-heinlein +#[[ ! -d /tmp/sa-rules-schaal ]] && mkdir -p /tmp/sa-rules-schaal # Hash current SA rules if [[ ! -f /etc/rspamd/custom/sa-rules ]]; then @@ -40,4 +40,4 @@ fi # Cleanup rm -rf /tmp/sa-rules-heinlein /tmp/sa-rules-heinlein.tar.gz -rm -rf /tmp/sa-rules-schaal /tmp/sa-rules-schaal.tar.gz +#rm -rf /tmp/sa-rules-schaal /tmp/sa-rules-schaal.tar.gz