Skip to content

Commit 9dd4d77

Browse files
authored
Switched order of hestia commands (hestiacp#1423)
1 parent cbccb0a commit 9dd4d77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/v-change-web-domain-ip

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ fi
7676
# Hestia #
7777
#----------------------------------------------------------#
7878

79+
# Update config
80+
update_object_value 'web' 'DOMAIN' "$domain" '$IP' "$3"
81+
7982
# Update counters
8083
increase_ip_value "$new"
8184
decrease_ip_value "$old"
8285

83-
# Update config
84-
update_object_value 'web' 'DOMAIN' "$domain" '$IP' "$3"
85-
8686
# Restart web server
8787
$BIN/v-restart-web $restart
8888
check_result $? "WEB restart failed" >/dev/null

0 commit comments

Comments
 (0)