diff options
-rw-r--r-- | bashrc/node/init.sh | 6 | ||||
-rw-r--r-- | bashrc/node/starsystems.inf.fu-berlin.de/pkg_path.sh (renamed from bashrc/node/starsystems/pkg_path.sh) | 0 |
2 files changed, 5 insertions, 1 deletions
diff --git a/bashrc/node/init.sh b/bashrc/node/init.sh index 0fb0b6b..43482b0 100644 --- a/bashrc/node/init.sh +++ b/bashrc/node/init.sh @@ -1,6 +1,10 @@ # get node specific data -declare -r _NODENAME=${HOSTNAME} +if env | grep HOSTNAME; then + declare -r _NODENAME=${HOSTNAME} +else + declare -r _NODENAME=$(hostname) +fi if [[ -n "${_NODENAME}" ]]; then _load node '*' diff --git a/bashrc/node/starsystems/pkg_path.sh b/bashrc/node/starsystems.inf.fu-berlin.de/pkg_path.sh index d459c2e..d459c2e 100644 --- a/bashrc/node/starsystems/pkg_path.sh +++ b/bashrc/node/starsystems.inf.fu-berlin.de/pkg_path.sh |