소스 검색

[install] stop service after download

Co-Authored-By: Alireza Ahmadi <[email protected]>
MHSanaei 1 년 전
부모
커밋
f0775abc67
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      install.sh

+ 1 - 1
install.sh

@@ -104,7 +104,6 @@ config_after_install() {
 }
 
 install_x-ui() {
-    systemctl stop x-ui
     cd /usr/local/
 
     if [ $# == 0 ]; then
@@ -131,6 +130,7 @@ install_x-ui() {
     fi
 
     if [[ -e /usr/local/x-ui/ ]]; then
+        systemctl stop x-ui
         rm /usr/local/x-ui/ -rf
     fi