From 3149a96ab8df29439c54077d221e6fe2e2200d4c Mon Sep 17 00:00:00 2001 From: Thibault bui Koechlin Date: Tue, 26 May 2020 18:18:32 +0200 Subject: [PATCH] fix #38 --- wizard.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/wizard.sh b/wizard.sh index 4214d4e1a..557e35fad 100755 --- a/wizard.sh +++ b/wizard.sh @@ -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 }