Explorar o código

Fix: nginx restart order

Serghey Rodin %!s(int64=7) %!d(string=hai) anos
pai
achega
f59ebc4f65
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
         if [ -e "$old.conf" ]; then
             mv $old.conf $new.conf
             mv $old.conf $new.conf
             sed -i "s/$old/$new/g" $new.conf
             sed -i "s/$old/$new/g" $new.conf
-            $BIN/v-restart-proxy
         fi
         fi
     fi
     fi
 
 
@@ -67,6 +66,7 @@ if [ ! -z "$new" ]; then
         for user in $(ls $VESTA/data/users/); do
         for user in $(ls $VESTA/data/users/); do
             $BIN/v-rebuild-web-domains $user no
             $BIN/v-rebuild-web-domains $user no
         done
         done
+        $BIN/v-restart-proxy
         $BIN/v-restart-web
         $BIN/v-restart-web
     fi
     fi