Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section Modification & Patches
  • Search

v-rebuild-web-domains with nat ip issue Topic is solved

Section with modification and patches for Vesta
Locked
  • Print view
Advanced search
4 posts • Page 1 of 1
Kyon
Posts: 19
Joined: Tue Jul 29, 2014 9:11 am

v-rebuild-web-domains with nat ip issue

Post by Kyon » 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 :
# 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
}
# 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
}
Now it's working fine.

PS : I am using last Debian stable version.
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: v-rebuild-web-domains with nat ip issue

Post by imperio » Mon Aug 25, 2014 4:48 pm

Hi,
Write about this problem in our bugtracker
https://bugs.vestacp.com/ (report a problem)
Top

Kyon
Posts: 19
Joined: Tue Jul 29, 2014 9:11 am

Re: v-rebuild-web-domains with nat ip issue

Post by Kyon » Mon Aug 25, 2014 5:46 pm

Ok, The bug was me... !

First, I edited script to get the NAT IP (useless and stupide... we want the local ip...).
After that, the issue raised because I have set my env with VESTA=/usr/local/vesta/. But script use cut with "/" as delimiter so...

I have change my env to set VESTA=/usr/local/vesta

Sorry about that :).
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: v-rebuild-web-domains with nat ip issue

Post by skurudo » Wed Feb 14, 2018 8:46 am

Closed
Top


Locked
  • Print view

4 posts • Page 1 of 1

Return to “Modification & Patches”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password