[SOLVED] problem with pct enter and run a script with "#!/usr/bin/env bash" - not working

redjohn

Renowned Member
Apr 22, 2016
132
4
83
28
Hello everybody,

I connect to some LXC Container with pct enter ID. After this I have a script like this here:

Code:
#!/usr/bin/env bash
export SOME_ENV_PATH="path/to/file.env"
read -p "Please give your name:" Name

If i comment out the line, the script is working fine
Code:
export SOME_ENV_PATH="path/to/file.env"
.

And if i connect via SSH to the LXC Container or use the Proxmox Console script is also running fine.

Why the script is not running with pct enter?

Regards,

Oliver