Skip to content

Commit

Permalink
wizard: install systemd service file (#3418)
Browse files Browse the repository at this point in the history
fix previous PR
  • Loading branch information
mmetc authored Jan 21, 2025
1 parent 29b2252 commit 1b5514c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wizard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,10 @@ install_crowdsec() {
[[ ! -f "${CROWDSEC_CONFIG_PATH}/console.yaml" ]] && install -v -m 644 -D ./config/console.yaml "${CROWDSEC_CONFIG_PATH}" > /dev/null || exit
[[ ! -f "${CROWDSEC_CONFIG_PATH}/context.yaml" ]] && install -v -m 644 -D ./config/context.yaml "${CROWDSEC_CONSOLE_DIR}" > /dev/null || exit

DATA=${CROWDSEC_DATA_DIR} CFG=${CROWDSEC_CONFIG_PATH} envsubst '$CFG $DATA' < ./config/user.yaml > ${CROWDSEC_CONFIG_PATH}"/user.yaml" || log_fatal "unable to generate user configuration file"
if [[ ${DOCKER_MODE} == "false" ]]; then
CFG=${CROWDSEC_CONFIG_PATH} BIN=${CROWDSEC_BIN_INSTALLED} envsubst '$CFG $BIN' < ./config/crowdsec.service > "${SYSTEMD_PATH_FILE}" || log_fatal "unable to crowdsec systemd file"
fi
install_bins

if [[ ${DOCKER_MODE} == "false" ]]; then
Expand Down

0 comments on commit 1b5514c

Please sign in to comment.