Merge pull request #6717 from mailcow/fix/6664
[Rspamd] only recreate external_services.conf file if it was deleted
This commit is contained in:
commit
3d05207bc7
@ -86,6 +86,7 @@ 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
|
||||||
|
if [[ ! -f /etc/rspamd/local.d/external_services.conf ]]; then
|
||||||
cat <<EOF > /etc/rspamd/local.d/external_services.conf
|
cat <<EOF > /etc/rspamd/local.d/external_services.conf
|
||||||
oletools {
|
oletools {
|
||||||
# default olefy settings
|
# default olefy settings
|
||||||
@ -101,6 +102,7 @@ oletools {
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Provide additional lua modules
|
# Provide additional lua modules
|
||||||
ln -s /usr/lib/$(uname -m)-linux-gnu/liblua5.1-cjson.so.0.0.0 /usr/lib/rspamd/cjson.so
|
ln -s /usr/lib/$(uname -m)-linux-gnu/liblua5.1-cjson.so.0.0.0 /usr/lib/rspamd/cjson.so
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user