update
This commit is contained in:
@@ -17,13 +17,6 @@ unset IFS
|
|||||||
|
|
||||||
# ========================================================= #
|
# ========================================================= #
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo -e "${idsCL[LightGreen]} NodeMgmt - Galera/NGINX Node Management${idsCL[Default]} ${idsCL[DarkGray]}(ver-${VERS})${idsCL[Default]}"
|
|
||||||
echo -e "${idsCL[LightGreen]}-------------------------------------------------------------${idsCL[Default]}"
|
|
||||||
echo -e "Node hostname: ${node_hostname}"
|
|
||||||
echo -e "${idsCL[LightGreen]}-------------------------------------------------------------${idsCL[Default]}"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
service)
|
service)
|
||||||
if [ "$2" = "nginx" ]; then SER='NGINX'
|
if [ "$2" = "nginx" ]; then SER='NGINX'
|
||||||
@@ -31,7 +24,6 @@ case "$1" in
|
|||||||
elif [ "$2" = "gogs" ]; then SER='Gogs'
|
elif [ "$2" = "gogs" ]; then SER='Gogs'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
|
||||||
STA="$(tr '[:lower:]' '[:upper:]' <<< ${3:0:1})${3:1}"
|
STA="$(tr '[:lower:]' '[:upper:]' <<< ${3:0:1})${3:1}"
|
||||||
echo -e "${idsCL[LightGreen]}[[${SER} ${STA}ing]]${idsCL[Default]}"
|
echo -e "${idsCL[LightGreen]}[[${SER} ${STA}ing]]${idsCL[Default]}"
|
||||||
echo -e "${idsCL[LightGreen]}-------------------------------------------${idsCL[Default]}"
|
echo -e "${idsCL[LightGreen]}-------------------------------------------${idsCL[Default]}"
|
||||||
|
|||||||
9
run.sh
9
run.sh
@@ -2,7 +2,14 @@
|
|||||||
# NodeMgmt Loader
|
# NodeMgmt Loader
|
||||||
|
|
||||||
source /opt/idssys/nodemgmt/settings.conf
|
source /opt/idssys/nodemgmt/settings.conf
|
||||||
#echo ""
|
|
||||||
|
echo ""
|
||||||
|
echo -e "${idsCL[Yellow} NodeMgmt - Galera/NGINX Node Management${idsCL[Default]} ${idsCL[DarkGray]}(ver-${VERS})${idsCL[Default]}"
|
||||||
|
echo -e "${idsCL[Yellow}-------------------------------------------------------------${idsCL[Default]}"
|
||||||
|
echo -e "Node hostname: ${node_hostname}"
|
||||||
|
echo -e "${idsCL[Yellow}-------------------------------------------------------------${idsCL[Default]}"
|
||||||
|
echo ""
|
||||||
|
|
||||||
if [ "$1" != "service1111" ]; then
|
if [ "$1" != "service1111" ]; then
|
||||||
cd /opt/idssys/defaults
|
cd /opt/idssys/defaults
|
||||||
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
|
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user