register api as well in --bininstall
@@ -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
