mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-01-26 05:27:29 +02:00
Don't delete folder which are not created... (#3484)
... in the script. And changed the order to be consistent.
This commit is contained in:
parent
ca48bc9c34
commit
37b0bfdac6
@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Create temp directories
|
# 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-heinlein ]] && mkdir -p /tmp/sa-rules-heinlein
|
||||||
|
#[[ ! -d /tmp/sa-rules-schaal ]] && mkdir -p /tmp/sa-rules-schaal
|
||||||
|
|
||||||
# Hash current SA rules
|
# Hash current SA rules
|
||||||
if [[ ! -f /etc/rspamd/custom/sa-rules ]]; then
|
if [[ ! -f /etc/rspamd/custom/sa-rules ]]; then
|
||||||
@ -40,4 +40,4 @@ fi
|
|||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
rm -rf /tmp/sa-rules-heinlein /tmp/sa-rules-heinlein.tar.gz
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user