Просмотр исходного кода

Switched order of hestia commands (#1423)

cmstew 5 лет назад
Родитель
Сommit
9dd4d77180
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      bin/v-change-web-domain-ip

+ 3 - 3
bin/v-change-web-domain-ip

@@ -76,13 +76,13 @@ fi
 #                       Hestia                             #
 #----------------------------------------------------------#
 
+# Update config
+update_object_value 'web' 'DOMAIN' "$domain" '$IP' "$3"
+
 # Update counters
 increase_ip_value "$new"
 decrease_ip_value "$old"
 
-# Update config
-update_object_value 'web' 'DOMAIN' "$domain" '$IP' "$3"
-
 # Restart web server
 $BIN/v-restart-web $restart
 check_result $? "WEB restart failed" >/dev/null