Use environment variable PLATFORM when defined.
This commit is contained in:
parent
27a1d5cb9c
commit
3a2c12e37c
1 changed files with 3 additions and 5 deletions
8
sit
8
sit
|
@ -17,20 +17,18 @@ if [[ -e $SIT_CONFIG_FILE ]] ; then
|
||||||
fi
|
fi
|
||||||
source "$SIT_PATH/functions.sh"
|
source "$SIT_PATH/functions.sh"
|
||||||
|
|
||||||
# check platform
|
if [ -z $PLATFORM ]; then
|
||||||
# TODO: add ip addresses for identification?
|
# identify platform manually if no environment variable was set
|
||||||
case $HOSTNAME in
|
case $HOSTNAME in
|
||||||
cl3fr1|cl3fr2|imager)
|
cl3fr1|cl3fr2|imager)
|
||||||
PLATFORM="laki"
|
PLATFORM="laki"
|
||||||
;;
|
;;
|
||||||
xe601)
|
|
||||||
PLATFORM="hermit"
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
sit_info "Unknown host '$HOSTNAME' using default platform '${DEFAULT_PLATFORM}' configuration"
|
sit_info "Unknown host '$HOSTNAME' using default platform '${DEFAULT_PLATFORM}' configuration"
|
||||||
PLATFORM="${DEFAULT_PLATFORM}"
|
PLATFORM="${DEFAULT_PLATFORM}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
sit_info "Platform: $PLATFORM"
|
sit_info "Platform: $PLATFORM"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue