v-rebuild-web-domains with nat ip issue
Posted: Mon Aug 25, 2014 4:13 pm
Hello,
I recently used the v-rebuild-web-domains bin and I saw that configs file was not generated correctly. All ip address were "ips" instead of "192.168.1.13" in my case.
I checked sources and I edited this :
PS : I am using last Debian stable version.
I recently used the v-rebuild-web-domains bin and I saw that configs file was not generated correctly. All ip address were "ips" instead of "192.168.1.13" in my case.
I checked sources and I edited this :
# Get real ip address
get_real_ip() {
if [ -e "$VESTA/data/ips/$1" ]; then
echo $1
else
nated_ip=$(grep -H "^NAT='$1'" $VESTA/data/ips/*)
echo "$nated_ip" | cut -f 1 -d : | cut -f 7 -d /
fi
}
Now it's working fine.# Get real ip address
get_real_ip() {
if [ -e "$VESTA/data/ips/$1" ]; then
echo $1
else
nated_ip=$(grep -H "^NAT='$1'" $VESTA/data/ips/*)
echo "$nated_ip" | cut -f 2 -d "'"
fi
}
PS : I am using last Debian stable version.