Hello everyone,
I need to do an export of a varibale in a LXC centos containers. After a few tests I notice that the values it returns for this varibale is an empty field.
Here is the test that I made :
The command that I really want to pass is the one :
I need to do an export of a varibale in a LXC centos containers. After a few tests I notice that the values it returns for this varibale is an empty field.
Here is the test that I made :
Code:
root@srv-proxmox:[~]:# pct exec 302 -- bash -c "TMP=hi; echo $TMP"
root@srv-proxmox:[~]:#
The command that I really want to pass is the one :
Code:
pct exec 302 -- bash -c "IP=$(echo 192.168.2.222 | sed 's/^.*\.\([^.]*\)$/\1/') ; sed -i '/; PTR Records/a'$IP' IN PTR try1\.lan\. ; 192.168.2.222' /etc/named/zones/db.lan.inv"