浏览代码

fix upgrade mode in wizard (#65)

Co-authored-by: erenJag <erenJag>
erenJag 5 年之前
父节点
当前提交
c37f020da3
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      wizard.sh

+ 2 - 0
wizard.sh

@@ -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"