Skip to content

Commit bb60d29

Browse files
authored
register api as well in --bininstall (#77)
1 parent d6987ae commit bb60d29

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

wizard.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,9 @@ main() {
415415
fi
416416
log_info "installing crowdsec"
417417
install_crowdsec
418+
# api register
419+
${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"
420+
log_info "Crowdsec api registered"
418421
return
419422
fi
420423

0 commit comments

Comments
 (0)