fix upgrade mode in wizard (#65)

Co-authored-by: erenJag <erenJag>
This commit is contained in:
erenJag 2020-06-03 17:14:01 +02:00 committed by GitHub
parent 051a1b427a
commit c37f020da3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,6 +59,7 @@ smb
'
BACKUP_DIR=$(mktemp -d)
rm -rf $BACKUP_DIR
log_info() {
@ -319,6 +320,7 @@ update_full() {
log_info "Installing crowdsec"
install_crowdsec
log_info "Restoring configuration"
${CSCLI_BIN} update
${CSCLI_BIN} backup restore ${BACKUP_DIR}
log_info "Finished, restarting"
systemctl restart crowdsec || log_err "Failed to restart crowdsec"