Merge pull request #6717 from mailcow/fix/6664

[Rspamd] only recreate external_services.conf file if it was deleted
This commit is contained in:
FreddleSpl0it
2025-09-09 12:53:03 +02:00
committed by GitHub
@@ -86,6 +86,7 @@ if [[ "${SKIP_OLEFY}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
rm /etc/rspamd/local.d/external_services.conf
fi
else
if [[ ! -f /etc/rspamd/local.d/external_services.conf ]]; then
cat <<EOF > /etc/rspamd/local.d/external_services.conf
oletools {
# default olefy settings
@@ -100,6 +101,7 @@ oletools {
retransmits = 1;
}
EOF
fi
fi
# Provide additional lua modules