fix upgrade mode in wizard
This commit is contained in:
parent
051a1b427a
commit
7a9cf333d9
1 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,7 @@ smb
|
||||||
'
|
'
|
||||||
|
|
||||||
BACKUP_DIR=$(mktemp -d)
|
BACKUP_DIR=$(mktemp -d)
|
||||||
|
rm -rf $BACKUP_DIR
|
||||||
|
|
||||||
|
|
||||||
log_info() {
|
log_info() {
|
||||||
|
@ -319,6 +320,7 @@ update_full() {
|
||||||
log_info "Installing crowdsec"
|
log_info "Installing crowdsec"
|
||||||
install_crowdsec
|
install_crowdsec
|
||||||
log_info "Restoring configuration"
|
log_info "Restoring configuration"
|
||||||
|
${CSCLI_BIN} update
|
||||||
${CSCLI_BIN} backup restore ${BACKUP_DIR}
|
${CSCLI_BIN} backup restore ${BACKUP_DIR}
|
||||||
log_info "Finished, restarting"
|
log_info "Finished, restarting"
|
||||||
systemctl restart crowdsec || log_err "Failed to restart crowdsec"
|
systemctl restart crowdsec || log_err "Failed to restart crowdsec"
|
||||||
|
|
Loading…
Add table
Reference in a new issue