wizard: fix unattended mode
This commit is contained in:
parent
8185aa248a
commit
40901c766f
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue