register api as well in --bininstall
This commit is contained in:
parent
d6987ae8f1
commit
31835974d7
1 changed files with 3 additions and 0 deletions
|
@ -415,6 +415,9 @@ main() {
|
|||
fi
|
||||
log_info "installing crowdsec"
|
||||
install_crowdsec
|
||||
# api register
|
||||
${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"
|
||||
return
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue