Update v-update-sys-ip

This commit is contained in:
myvesta 2020-07-26 01:03:48 +02:00 committed by GitHub
commit f194eb8571
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -110,7 +110,7 @@ for ip in $ips; do
done
# Updating NAT
pub_ip=$(curl -s vestacp.com/what-is-my-ip/)
pub_ip=$(curl -s https://scripts.myvestacp.com/ip.php)
if [ ! -e "$VESTA/data/ips/$pub_ip" ]; then
if [ -z "$(grep -R "$pub_ip" $VESTA/data/ips/)" ]; then
ip=$(ls -t $VESTA/data/ips/ |head -n1)