aboutsummaryrefslogtreecommitdiff
path: root/security/crowdsec-firewall-bouncer/files/crowdsec_firewall.in
diff options
context:
space:
mode:
Diffstat (limited to 'security/crowdsec-firewall-bouncer/files/crowdsec_firewall.in')
-rw-r--r--security/crowdsec-firewall-bouncer/files/crowdsec_firewall.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/security/crowdsec-firewall-bouncer/files/crowdsec_firewall.in b/security/crowdsec-firewall-bouncer/files/crowdsec_firewall.in
index 78fed46c27f2..47c4c25cfae1 100644
--- a/security/crowdsec-firewall-bouncer/files/crowdsec_firewall.in
+++ b/security/crowdsec-firewall-bouncer/files/crowdsec_firewall.in
@@ -49,7 +49,7 @@ crowdsec_firewall_precmd() {
# THEN, register it to the local API
API_KEY=$($CSCLI bouncers add "${crowdsec_firewall_name}" -o raw)
if [ -n "$API_KEY" ]; then
- sed -i "" "s|^${orig_line}|api_key: ${API_KEY} # ${crowdsec_firewall_name}|" "${crowdsec_firewall_config}"
+ sed -i "" "s|^${orig_line}|api_key: '${API_KEY}'|" "${crowdsec_firewall_config}"
echo "Registered: ${crowdsec_firewall_name}"
fi
fi
@@ -85,6 +85,7 @@ crowdsec_firewall_stop()
crowdsec_firewall_start() {
# ensure we have a backend if the config file was not patched
export BACKEND=pf
+ # shellcheck disable=SC2086
/usr/sbin/daemon -f -p "$pidfile" -t "$desc" -- \
"$command" -c "$crowdsec_firewall_config" ${crowdsec_firewall_flags}
}