Quote From : asim_shaikh September 12, 2016, 12:44 pm Quote You didnt answer my question sir...
I need to GET the VPS details like IP assign in order to change the network. How can I pass that info to the RECEIPT?
Hi,
As the recipe is running inside the VPS and it is static script added in virtualizor the resources (like ip, hostname) assigned to the VPS will be dyncamic and cannot be added to the recipe, so i suggested you to add shell script commands to get these details, for example if you want the IP assigned to the VPS you can use the following shell script:
ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/'
Hi again,
I don't think you're following me.
I dont want to assign an IP because Virtualizor does that.
I want to run the receipt in order to change the network of the VPS.
My FreeBSD template DOESN'T AUTO CONFIGURE, so I need to insert in the NEW VPS /etc/rc.conf file some lines so the NETWORK Works.
I understood that Receipt will run inside the VPS the bash script BUT that doesnt work unless i can pass to the SCRIPT the IP ASSIGN TO THE VPS by Virtualizor.
I can't be much more explicit sir..
|