diff options
author | Timoney, Dan (dt5972) <dtimoney@att.com> | 2018-11-06 14:15:05 -0500 |
---|---|---|
committer | Timoney, Dan (dt5972) <dtimoney@att.com> | 2018-11-06 14:16:18 -0500 |
commit | d9642fafddbaa28789339e1989c4583af003a193 (patch) | |
tree | 0442af1ba4e793433fac5871dd8e69c98a056446 /dgbuilder/show_status.sh | |
parent | 33d814f236d4c3e4246851c810bdbbab5090abbb (diff) |
Fix license issues
Fix license definition in package.json files
Remove obsolete dgbuilder from SDNC (dgbuilder now in CCSDK)
Change-Id: Iee0bf9468f081c5957eae2e873efbea6fb6be354
Issue-ID: SDNC-489
Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
Former-commit-id: 4e104ac4183dd46124753c4571939e765a124508
Diffstat (limited to 'dgbuilder/show_status.sh')
-rwxr-xr-x | dgbuilder/show_status.sh | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/dgbuilder/show_status.sh b/dgbuilder/show_status.sh deleted file mode 100755 index 21197515..00000000 --- a/dgbuilder/show_status.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash -tbold=$(tput setf 3) -bold=$(tput setf 2) -bold1=$(tput setf 2) -offbold=$(tput rmso;tput sgr0) - -function pad { - #echo "1 is $1 2 is $2" - if [ "$1" == "" ] - then - $1 = ""; - fi - let count=0 - curr_len=`expr length "$1"` - let space_length=$2-$curr_len - spaces="" - while [ $count -lt $space_length ] - do - spaces="$spaces " - let count=$count+1 - done - echo "$1$spaces" -} - -function isRunning { - echo $(curl -I "$1" 2>/dev/null|head -1|tail -1|awk '{print $2}') -} -dirName=$(pwd) -options=($(ls -l $dirName/releases|grep ^d|awk '{print $NF}'|sort)) - echo "$(pad RELEASE 15)$(pad URL 30)$(pad Status 10)" - echo "$(pad '----' 15)$(pad '---' 30)$(pad '------' 10)" - for opt in "${options[@]}" - do - - releaseDir="$opt" - if [ -e "./releases/${opt}/customSettings.js" ] - then - pid=$(cat ./releases/$releaseDir/logs/process_pid 2>/dev/null) - port=$(cat ./releases/$releaseDir/customSettings.js 2>/dev/null|grep uiPort|sed -e 's/[, ]//g'|cut -d: -f2) - resp1=$(isRunning "http://localhost:$port") - if [ "$resp1" == "401" ] - then - echo "$(pad $releaseDir 15)$(pad http://localhost:$port 30)${bold}$(pad running 10)${offbold}" - else - processId=$(netstat -upltn 2>/dev/null|grep $port|awk '{print $NF}'|sed -e 's%/node-red%%g') - if [ "$processId" == "" ] - then - echo "$(pad $releaseDir 15)$(pad http://localhost:$port 30)${bold}$(pad stopped 10)${offbold}" - else - echo "$(pad $releaseDir 15)$(pad http://localhost:$port 30)${bold}$(pad running 10)${offbold}" - fi - fi - fi - done |