Source Update

This commit is contained in:
Christer Warén
2024-04-28 06:08:57 +03:00
parent 824ca7168c
commit 28aed09fd1
6 changed files with 120 additions and 20 deletions

View File

@ -4,7 +4,7 @@ wx-login() {
echo -n "$wxNormal";
echo "------------------------------"
ORG=$2
ORG=$1
if [[ -z "$HOSTNAME" || ${#HOSTNAME} -lt 5 ]]; then
wx-stop
@ -92,7 +92,7 @@ wx-login() {
if [[ $VAULT_STATUS -eq 200 ]]
then
IDM_STATUS=$(curl -s -o /dev/null -w "%{http_code}" https://$IDM_DOMAIN)
if [[ $IDM_STATUS -eq 302 ]]
if [[ $IDM_STATUS -eq 301 ]]
then
echo -n $wxBold
echo -n $ORG
@ -138,8 +138,8 @@ wx-login() {
wx-stop
fi
fi
echo ""
config[${ORG}]=$VAULT_LOGIN
wx-start
else
echo -n $wxBold
@ -171,6 +171,7 @@ wx-login() {
wx-stop
fi
config[${ORG}]=$VAULT_LOGIN
wx-start
fi
else