mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
system: /etc/profile reads /etc/environment for the sake of lshd.
Fixes <http://bugs.gnu.org/22175>. * gnu/system.scm (operating-system-etc-service)[profile]: Add hack to define variables from /etc/environment.
This commit is contained in:
parent
3a6a0f6013
commit
2a5f0db4c4
1 changed files with 11 additions and 0 deletions
|
@ -465,6 +465,17 @@ (define* (operating-system-etc-service os)
|
|||
export PATH=\"$HOME/.guix-profile/bin:$PATH\"
|
||||
fi
|
||||
|
||||
# Since 'lshd' does not use pam_env, /etc/environment must be explicitly
|
||||
# loaded when someone logs in via SSH. See <http://bugs.gnu.org/22175>.
|
||||
# We need 'PATH' to be defined here, for 'cat' and 'cut'.
|
||||
if [ -f /etc/environment -a -n \"$SSH_CLIENT\" \\
|
||||
-a -z \"$LINUX_MODULE_DIRECTORY\" ]
|
||||
then
|
||||
. /etc/environment
|
||||
export `cat /etc/environment | cut -d= -f1`
|
||||
fi
|
||||
|
||||
|
||||
# Allow GStreamer-based applications to find plugins.
|
||||
export GST_PLUGIN_PATH=\"$HOME/.guix-profile/lib/gstreamer-1.0\"
|
||||
|
||||
|
|
Loading…
Reference in a new issue