Commit 9ceed59
Set MODULEPATH config path based on CentOS version
As part of the change from CentOS 8.2 to CentOS 8.3, the environment
modules package installed by default changed from
environment-modules-4.1.4-4 to environment-modules-4.5.2-1. According to
a changelog from rpmfind.net (linked at the end of this commit message),
one of the changes is to 'Make .modulespath a config file'. With this
change, it seems the value of the MODULEPATH environment variable (used
to tell the `module` command which directories to search) must be
configured via /etc/environment-modules/modulespath rather than
/usr/share/Modules/init/.modulespath. This commit sets this path
dynamically based on the OS in use.
Link to info for RPM providing environment-modules-4.5.2-1:
http://rpmfind.net/linux/RPM/centos/8-stream/baseos/x86_64/Packages/environment-modules-4.5.2-1.el8.x86_64.html
Signed-off-by: Tim Lane <tilne@amazon.com>1 parent f3915fe commit 9ceed59
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
257 | 265 | | |
258 | 266 | | |
259 | 267 | | |
| |||
336 | 344 | | |
337 | 345 | | |
338 | 346 | | |
| 347 | + | |
| 348 | + | |
339 | 349 | | |
340 | 350 | | |
341 | 351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments