Browse Source

Fix: nginx restart order

Serghey Rodin 7 năm trước cách đây
mục cha
commit
f59ebc4f65
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      bin/v-update-sys-ip

+ 1 - 1
bin/v-update-sys-ip

@@ -52,7 +52,6 @@ if [ ! -z "$new" ]; then
         if [ -e "$old.conf" ]; then
             mv $old.conf $new.conf
             sed -i "s/$old/$new/g" $new.conf
-            $BIN/v-restart-proxy
         fi
     fi
 
@@ -67,6 +66,7 @@ if [ ! -z "$new" ]; then
         for user in $(ls $VESTA/data/users/); do
             $BIN/v-rebuild-web-domains $user no
         done
+        $BIN/v-restart-proxy
         $BIN/v-restart-web
     fi