Skip to content

Commit

Permalink
Fix hub CI (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
erenJag committed Jun 24, 2020
1 parent 02351e9 commit bdda082
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/hub-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ jobs:
run: |
for i in `find ./tests -mindepth 1 -maxdepth 1 -type d` ; do
echo "::group::Test-${i}" ;
./main $i || (echo "::error file=${i}::Failed test for ${i}" ; diff ${i}"/results.yaml" ${i}"/results.yaml.fail") ;
./main -c dev.yaml $i || (echo "::error file=${i}::Failed test for ${i}" ; diff ${i}"/results.json" ${i}"/results.json.fail") ;
echo "::endgroup::" ;
done ;
4 changes: 2 additions & 2 deletions cmd/crowdsec-cli/backup-restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -456,7 +456,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 {
Expand Down
6 changes: 3 additions & 3 deletions wizard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit bdda082

Please sign in to comment.