CAMH-Scientific-Computing / SCC

CAMH Specialised Computing Centre
0 stars 0 forks source link

modules system is no longer working... #48

Closed pipitone closed 9 years ago

pipitone commented 9 years ago

I suspect someone is making changes, but at the moment upon login I'm greeted with:

-bash: /etc/profile.d/modules.sh: No such file or directory

Looking more closely:

[jpipitone@mgmt2 ~]$ head -13 /etc/profile
# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

# It's NOT good idea to change this file unless you know what you
# are doing. Much better way is to create custom.sh shell script in
# /etc/profile.d/ to make custom changes to environment. This will
# prevent need for merging in future updates.

source /etc/bashrc
source /etc/profile.d/modules.sh

^^^ Not sure why this file is being edited to enable the modules system, it's better just to chuck files to be sourced in /etc/profile.d/.

djrotenberg commented 9 years ago

The modules.sh file is indeed located in /etc/profile.d and was being edited at the time. This should be resolved.