mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
fixed bug in ip change function
This commit is contained in:
parent
3181123fff
commit
2d82352773
1 changed files with 5 additions and 1 deletions
|
@ -39,11 +39,15 @@ is_object_unsuspended 'dns' 'DOMAIN' "$domain"
|
|||
# Action #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Get old ip
|
||||
get_domain_values 'dns'
|
||||
old=$IP
|
||||
|
||||
# Changing ip
|
||||
update_object_value 'dns' 'DOMAIN' "$domain" '$IP' "$ip"
|
||||
|
||||
# Changing records
|
||||
sed -i "s/$old_ip/$ip/g" $USER_DATA/dns/$domain.conf
|
||||
sed -i "s/$old/$ip/g" $USER_DATA/dns/$domain.conf
|
||||
|
||||
# Updating zone
|
||||
update_domain_zone
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue