improve logging + fix bug in wizard (--upgrade)
This commit is contained in:
parent
ea45994a4d
commit
dd632483fc
2 changed files with 4 additions and 4 deletions
|
@ -415,7 +415,7 @@ cscli backup restore ./my-backup`,
|
|||
}
|
||||
outputCTX, err = outputs.NewOutput(&outputConfig, false)
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to load output plugins")
|
||||
log.Fatalf("Failed to load output plugins : %v", err)
|
||||
}
|
||||
if err := cwhub.GetHubIdx(); err != nil {
|
||||
log.Fatalf("Failed to get Hub index : %v", err)
|
||||
|
|
|
@ -314,14 +314,14 @@ update_full() {
|
|||
fi
|
||||
|
||||
log_info "Backing up existing configuration"
|
||||
${CSCLI_BIN} backup save ${BACKUP_DIR}
|
||||
${CSCLI_BIN_INSTALLED} backup save ${BACKUP_DIR}
|
||||
log_info "Cleanup existing crowdsec configuration"
|
||||
uninstall_crowdsec
|
||||
log_info "Installing crowdsec"
|
||||
install_crowdsec
|
||||
log_info "Restoring configuration"
|
||||
${CSCLI_BIN} update
|
||||
${CSCLI_BIN} backup restore ${BACKUP_DIR}
|
||||
${CSCLI_BIN_INSTALLED} update
|
||||
${CSCLI_BIN_INSTALLED} backup restore ${BACKUP_DIR}
|
||||
log_info "Finished, restarting"
|
||||
systemctl restart crowdsec || log_err "Failed to restart crowdsec"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue