Merge pull request #1751 from hacktivista/fix/v-update-sys-ip-non-existent-files

Fix v-update-sys-ip: verify if primary IP exists
This commit is contained in:
Serghey Rodin 2019-05-14 10:38:38 +03:00 committed by GitHub
commit 1e157d4c29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@ if [[ "$ip_num" -eq '1' ]] && [[ "$v_ip_num" -eq 1 ]]; then
fi
# Updating configs
if [ ! -z "$new" ]; then
if [ ! -z "$old" ]; then
mv $VESTA/data/ips/$old $VESTA/data/ips/$new
# Updating PROXY