소스 검색

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"