[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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!