register api as well in --bininstall (#77)
This commit is contained in:
parent
d6987ae8f1
commit
bb60d29ac8
|
@ -415,6 +415,9 @@ main() {
|
||||||
fi
|
fi
|
||||||
log_info "installing crowdsec"
|
log_info "installing crowdsec"
|
||||||
install_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
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue