diff --git a/cmd/crowdsec-cli/backup-restore.go b/cmd/crowdsec-cli/backup-restore.go index d6c04cd5b..852214408 100644 --- a/cmd/crowdsec-cli/backup-restore.go +++ b/cmd/crowdsec-cli/backup-restore.go @@ -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) diff --git a/wizard.sh b/wizard.sh index c92f63518..72cd8cd0d 100755 --- a/wizard.sh +++ b/wizard.sh @@ -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" }