From 3d04f2f24c8cecd9879c642759ffc0db9b070f7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Mon, 29 Apr 2024 07:39:30 +0300 Subject: [PATCH] Source Update --- src/functions/login.sh | 5 +++-- wx | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/functions/login.sh b/src/functions/login.sh index 09aece6..3f43e1e 100644 --- a/src/functions/login.sh +++ b/src/functions/login.sh @@ -6,14 +6,15 @@ wx-login(){ ORG=$1 - if [[ -z "$HOSTNAME" || ${#HOSTNAME} -lt 5 ]]; then + if [[ -z "$HOSTNAME" || ${#HOSTNAME} -lt 5 ]] + then wx-stop fi if [[ $(hostname -d) == "devices.waren.io" ]] then ORG=warengroup - elif [[ $(hostname -d) == "devices.cwinfo.net" ]] + elif [[ $(hostname -d) == "devices.cwinfo.net" || $(hostname -d) == "fr1.servers.devices.cwinfo.net" ]] then ORG=cwinfo elif [[ $(hostname -d) == "devices.christerwaren.fi" ]] diff --git a/wx b/wx index 1158d33..dde7e8a 100755 --- a/wx +++ b/wx @@ -28,14 +28,15 @@ wx-login(){ ORG=$1 - if [[ -z "$HOSTNAME" || ${#HOSTNAME} -lt 5 ]]; then + if [[ -z "$HOSTNAME" || ${#HOSTNAME} -lt 5 ]] + then wx-stop fi if [[ $(hostname -d) == "devices.waren.io" ]] then ORG=warengroup - elif [[ $(hostname -d) == "devices.cwinfo.net" ]] + elif [[ $(hostname -d) == "devices.cwinfo.net" || $(hostname -d) == "fr1.servers.devices.cwinfo.net" ]] then ORG=cwinfo elif [[ $(hostname -d) == "devices.christerwaren.fi" ]]