According to the manual (in Invocation section), .bashrc is sourced only for interactive and non login shells by default. Some installations source .bashrc from .profile, but it is not reliable. For example the user may have been created without copying files from /etc/skel, thus no system-default .profile file is present in user's home directory.
The solution is either to provide a way to configure where to put the export and/or change the default location.
According to the manual (in Invocation section),
.bashrc
is sourced only for interactive and non login shells by default. Some installations source.bashrc
from.profile
, but it is not reliable. For example the user may have been created without copying files from/etc/skel
, thus no system-default.profile
file is present in user's home directory.The solution is either to provide a way to configure where to put the export and/or change the default location.