Skip to content

Commit

Permalink
fix #38 (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
buixor committed May 27, 2020
1 parent 8e2c9bc commit ec81bc1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions wizard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -295,16 +295,10 @@ install_crowdsec() {
}

update_bins() {
log_info "Saving api credentials"
${CSCLI_BIN_INSTALLED} api credentials > ${BACKUP_DIR}/api-credentials.back || log_err "Unable to save credentials"
cat ${CROWDSEC_CONFIG_PATH}/api.yaml
log_info "Only upgrading binaries"
delete_bins
install_bins
log_info "Upgrade finished"
echo "#restored credentials" >> ${CROWDSEC_CONFIG_PATH}/api.yaml || log_err "unable to write to api file"
cat ${BACKUP_DIR}/api-credentials.back >> ${CROWDSEC_CONFIG_PATH}/api.yaml || log_err "unable to write to api file"

systemctl restart crowdsec
}

Expand Down

0 comments on commit ec81bc1

Please sign in to comment.