Skip to content

Commit

Permalink
Merge pull request #48 from crowdsecurity/waf_integration
Browse files Browse the repository at this point in the history
Fix envsubst in install script
  • Loading branch information
AlteredCoder authored Dec 14, 2023
2 parents 4e1d4c9 + b91d7c9 commit 73cc5dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ gen_apikey() {
fi
CROWDSEC_LAPI_URL="http://127.0.0.1:${LAPI_DEFAULT_PORT}"
mkdir -p "${CONFIG_PATH}"
API_KEY=${API_KEY} CROWDSEC_LAPI_URL=${CROWDSEC_LAPI_URL} envsubst < ${LUA_MOD_DIR}/config_example.conf | sudo tee -a "${CONFIG_PATH}crowdsec-nginx-bouncer.conf" >/dev/null
API_KEY=${API_KEY} CROWDSEC_LAPI_URL=${CROWDSEC_LAPI_URL} envsubst '$API_KEY $CROWDSEC_LAPI_URL' < ${LUA_MOD_DIR}/config_example.conf | sudo tee -a "${CONFIG_PATH}crowdsec-nginx-bouncer.conf" >/dev/null
}

check_nginx_dependency() {
Expand Down

0 comments on commit 73cc5dd

Please sign in to comment.