diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2011-03-30 01:58:09 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2011-03-30 01:58:09 +0200 |
commit | 39825a31858a5b9412871bc6046faaab7b80a502 (patch) | |
tree | 7861d249e6ccc14c4fff2a9bebca93a992b7976e /bashrc/node | |
parent | 5760cb8538815f3b6a49412eb8fe637804bd6938 (diff) | |
download | dotfiles-39825a31858a5b9412871bc6046faaab7b80a502.tar.gz dotfiles-39825a31858a5b9412871bc6046faaab7b80a502.tar.xz dotfiles-39825a31858a5b9412871bc6046faaab7b80a502.zip |
fixed loading of node configs
Diffstat (limited to 'bashrc/node')
-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 |