From 73838d1aa545beee8291721054a2d44fccb9701a Mon Sep 17 00:00:00 2001 From: aitzol Date: Mon, 4 Mar 2024 09:09:14 +0100 Subject: [PATCH] fixed firewall scripts --- docker-prosody-module-install.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-prosody-module-install.bash b/docker-prosody-module-install.bash index b1f2b4e..0ac2bd1 100755 --- a/docker-prosody-module-install.bash +++ b/docker-prosody-module-install.bash @@ -49,7 +49,7 @@ for ext in $exts; do # firewall module configuration if [ "$ext" == "firewall" ] ; then echo " - setting up mod_${ext}" - new_config=$(cat "${config}" | echo -e "\nlocal spam_blocklist = os.getenv(\"SPAM_BLOCKLIST\") and \"/usr/local/etc/prosody/firewall/\" .. os.getenv(\"SPAM_BLOCKLIST\") or \"module:scripts/spam-blocklists.pfw\"\n\nfirewall_scripts = {\n\tspam_blocklist;\n};") + new_config=$(cat "${config}" | echo -e "\nlocal spam_blocklist = os.getenv(\"SPAM_BLOCKLIST\") and \"/usr/local/etc/prosody/firewall/\" .. os.getenv(\"SPAM_BLOCKLIST\") or \"module:scripts/spam-blocklists.pfw\"\n\nfirewall_scripts = {\n\t\"module:scripts/spam-blocking.pfw\";\n\tspam_blocklist;\n};") echo "${new_config}" >> "${config}" fi done