Age | Commit message (Expand) | Author | Files | Lines |
---|---|---|---|---|
2018-02-27 | Make use of append instead of string concatenation | #!/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"
}
releaseDir=""
if [ "$#" == "1" ]
then
releaseDir="$1"
fi
if [ -e "releases/${releaseDir}/customSettings.js" ]
then
port=$(cat releases/${releaseDir}/customSettings.js|grep uiPort|sed -e 's/[, ]//g'|cut -d: -f2)
kill $(cat releases/${releaseDir}/logs/process_pid 2>/dev/null) >/dev/null 2>&1
if [ "$?" != "0" ]
then
#kill only if its a node-red process
processPid=$(netstat -upltn 2>/dev/null|grep -w $port|awk '{print $NF}'|sed -e 's%/node-red%%g')
kill $processPid 2>/dev/null
echo "http://localhost:$port ---- STOPPED"
./show_status.sh|grep -w "${releaseDir}"
else
echo "http://localhost:$port ---- STOPPED"
./show_status.sh|grep -w "${releaseDir}"
fi
else
if [ "$releaseDir" != "" ]
then
echo "Release Directory ${releaseDir} not setup.";
else
echo "Usage:$0 releaseDirName"
fi
fi
| 1 | -3/+12 |
2017-10-19 | Use StringBuilder | Ramanjaneya-Huawei | 2 | -3/+9 |
2017-10-19 | Remove the declaration of thrown exception | Ramanjaneya-Huawei | 1 | -3/+1 |
2017-10-02 | Merge "Fixed major sonar issues" | Seshu Kumar M | 1 | -6/+6 |
2017-09-27 | Replaced with the diamnod operator | rama-huawei | 3 | -4/+5 |
2017-09-26 | Fixed major sonar issues | shashikanth | 1 | -6/+6 |
2017-09-22 | Fix Blocker/Critical sonar issues | shashikanth | 1 | -3/+3 |
2017-09-18 | Fixed Issues In adapter code. | seshukm | 4 | -35/+56 |
2017-09-12 | Fix for SONAR critical issues | seshukm | 3 | -17/+30 |
2017-09-11 | Fix for SONAR critical issues | seshukm | 2 | -1/+20 |
2017-09-11 | Change the header to SO | Seshu-Kumar-M | 45 | -45/+45 |
2017-09-08 | 1710 Rebase - Second Attempt | Arthur Martella | 3 | -59/+456 |
2017-05-09 | [MSO-8] Additional fixes for the second rebase | Determe, Sebastien (sd378r) | 3 | -208/+312 |
2017-05-02 | [MSO-8] Second step of the rebase for MSO | Determe, Sebastien (sd378r) | 13 | -597/+608 |
2017-04-11 | Simplify MsoHeatEnvironmentParameter methods | Gary Wu | 1 | -12/+3 |
2017-04-11 | [MSO-8] Update the maven dependency | xg353y | 20 | -70/+912 |
2017-04-10 | Remove unnecessary use of Calendar.getInstance() | Gary Wu | 3 | -13/+7 |
2017-01-31 | Initial OpenECOMP MSO commit | ChrisC | 38 | -0/+6521 |