Re: Vzctl and VPS variables [message #3756 is a reply to message #3755] |
Wed, 14 June 2006 14:25  |
|
Note that /etc/profile is for interactive shells. From the bash(1) man page:
Quote: | When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists.
|
So, /etc/profile is not the correct file to set up environment used by non-interactive scripts. See man bash or info bash for more info.
Kir Kolyshkin
|
|
|