[Rspamd] only recreate external_services.conf file if it was deleted

This commit is contained in:
FreddleSpl0it 2025-09-09 12:50:19 +02:00
parent 56d083ced4
commit 8c8497d885
No known key found for this signature in database
GPG Key ID: 00E14E7634F4BEC5

View File

@ -86,7 +86,8 @@ if [[ "${SKIP_OLEFY}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
rm /etc/rspamd/local.d/external_services.conf rm /etc/rspamd/local.d/external_services.conf
fi fi
else else
cat <<EOF > /etc/rspamd/local.d/external_services.conf if [[ ! -f /etc/rspamd/local.d/external_services.conf ]]; then
cat <<EOF > /etc/rspamd/local.d/external_services.conf
oletools { oletools {
# default olefy settings # default olefy settings
servers = "olefy:10055"; servers = "olefy:10055";
@ -100,6 +101,7 @@ oletools {
retransmits = 1; retransmits = 1;
} }
EOF EOF
fi
fi fi
# Provide additional lua modules # Provide additional lua modules