|
|
@@ -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
|