wizard: fix unattended mode (#57)

This commit is contained in:
erenJag 2020-06-03 14:24:33 +02:00 committed by GitHub
parent fc05a49cc3
commit 6bee95b368
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -455,10 +455,10 @@ 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"
${CSCLI_BIN_INSTALLED} api pull
if [[ ${SILENT} == "false" ]]; then
(systemctl start crowdsec && log_info "crowdsec started") || log_err "unable to start crowdsec. exiting"
${CSCLI_BIN_INSTALLED} api pull
fi;
# Set the cscli api pull cronjob
setup_cron_pull