wizard: fix unattended mode

This commit is contained in:
erenJag 2020-06-02 14:00:47 +02:00
parent 8185aa248a
commit 40901c766f

View file

@ -455,8 +455,9 @@ main() {
${CSCLI_BIN_INSTALLED} api register >> /etc/crowdsec/config/api.yaml || ${CSCLI_BIN_INSTALLED} api reset >> /etc/crowdsec/config/api.yaml || log_err "unable to register, skipping crowdsec api registration"
log_info "Crowdsec api registered"
(systemctl start crowdsec && log_info "crowdsec started") || log_err "unable to start crowdsec. exiting"
if [[ ${SILENT} == "false" ]]; then
(systemctl start crowdsec && log_info "crowdsec started") || log_err "unable to start crowdsec. exiting"
fi;
${CSCLI_BIN_INSTALLED} api pull
# Set the cscli api pull cronjob