From 3a22a0c09cdf6cbc92a7183c8277f175fee2f6eb Mon Sep 17 00:00:00 2001 From: LePresidente Date: Thu, 9 May 2024 19:09:49 +0200 Subject: [PATCH] Fix environment variable for setting crowdsec bouncer, was broken due to slashes in path. --- .../rootfs/etc/s6-overlay/s6-rc.d/cs-crowdsec-bouncer/script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/rootfs/etc/s6-overlay/s6-rc.d/cs-crowdsec-bouncer/script.sh b/docker/rootfs/etc/s6-overlay/s6-rc.d/cs-crowdsec-bouncer/script.sh index 2f610613..da5e9000 100755 --- a/docker/rootfs/etc/s6-overlay/s6-rc.d/cs-crowdsec-bouncer/script.sh +++ b/docker/rootfs/etc/s6-overlay/s6-rc.d/cs-crowdsec-bouncer/script.sh @@ -3,7 +3,7 @@ set -e # Exit immediately if a command exits with a non-zero status. function set_properties() { - sed -i "s/^$1=.*/$1=$2/" "${3}" + sed -i "s,^$1=.*,$1=$2,g" "${3}" } echo "Deploy Crowdsec Openresty Bouncer.."