mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 22:04:00 -07:00
Fix v-update-sys-ip: verify if primary IP exists
Fixes the following errors on new installations: > mv: cannot move '/usr/local/vesta/data/ips/' to a subdirectory of itself, '/usr/local/vesta/data/ips/x.x.x.x' > sed: can't read /usr/local/vesta/data/users/*/dns/*.conf: No such file or directory > sed: -e expression #1, char 0: no previous regular expression > sed: -e expression #1, char 0: no previous regular expression
This commit is contained in:
parent
cbbf27fc46
commit
9abd3baf2e
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ if [[ "$ip_num" -eq '1' ]] && [[ "$v_ip_num" -eq 1 ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Updating configs
|
# Updating configs
|
||||||
if [ ! -z "$new" ]; then
|
if [ ! -z "$old" ]; then
|
||||||
mv $VESTA/data/ips/$old $VESTA/data/ips/$new
|
mv $VESTA/data/ips/$old $VESTA/data/ips/$new
|
||||||
|
|
||||||
# Updating PROXY
|
# Updating PROXY
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue