Fix environment variable for setting crowdsec bouncer, was broken due to slashes in path.

This commit is contained in:
LePresidente 2024-05-09 19:09:49 +02:00
parent 82d2476855
commit 3a22a0c09c

View File

@ -3,7 +3,7 @@
set -e # Exit immediately if a command exits with a non-zero status. set -e # Exit immediately if a command exits with a non-zero status.
function set_properties() { function set_properties() {
sed -i "s/^$1=.*/$1=$2/" "${3}" sed -i "s,^$1=.*,$1=$2,g" "${3}"
} }
echo "Deploy Crowdsec Openresty Bouncer.." echo "Deploy Crowdsec Openresty Bouncer.."