I have a shell script at /etc/profile.d/pg_local.sh
. It contains the following contents:
export PATH="$PATH:/usr/local/pgsql/bin"
Its supposed to load that path in the user accounts' $PATH when the system starts up. However, it is not doing that. When I start up system, and try to use one of the binaries at that path, it doesn't work. I am forced to source it:
source /etc/profile.d/pg_local.sh
What might I be doing wrong?
etc/profile.d/pg_local.sh
perhpassudo chmod a+x etc/profile.d/pg_local.sh
– Panther May 26 '15 at 02:55/etc/bash.bashrc
file. Since this is a system wide configuration file and is loaded up for non interactive shells. – heavyguidence May 26 '15 at 03:30BASH_XTRACEFD=3 PS4='+ $BASH_SOURCE:$LINENO:' bash -xlic '' 3> /tmp/xtrace-output.txt
. Then look through/tmp/xtrace-output.txt
. – geirha May 26 '15 at 07:39