This commit is contained in:
2023-07-04 20:20:58 -05:00
parent 07fc8f2761
commit 35c144d6b3
2 changed files with 6 additions and 3 deletions

View File

@@ -7,6 +7,8 @@ source /opt/idssys/dsmon/config.settings.inc
action="$1"
VERS=2.2.1-07042023
RUN(){
if [ "${SERVERMON_ID}" != "" ]; then

7
run.sh
View File

@@ -20,7 +20,7 @@ if [ "${1}" == "update" ]; then
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
if [ "${2}" != "q" ]; then
echo -en "\e[1A";
echo -e "\e[0K\r ${idsCL[LightCyan]}Installing defaults updates...${idsCL[Default]}"
echo -e "${idsCL[LightCyan]}Updating iDSSYS-Defaults...${idsCL[Default]}"
fi
git fetch origin master >/dev/null 2>&1
git reset --hard origin/master >/dev/null 2>&1
@@ -34,7 +34,7 @@ if [ "${1}" == "update" ]; then
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
if [ "${2}" != "q" ]; then
echo -en "\e[1A";
echo -e "\e[0K\r ${idsCL[LightCyan]}Installing dsmon updates...${idsCL[Default]}"
echo -e "\e[0K\r ${idsCL[LightCyan]}Updating DSMon...${idsCL[Default]}"
fi
git fetch origin master >/dev/null 2>&1
git reset --hard origin/master >/dev/null 2>&1
@@ -44,9 +44,10 @@ if [ "${1}" == "update" ]; then
git pull >/dev/null 2>&1
git submodule update --remote >/dev/null 2>&1
/bin/chmod +x /opt/idssys/nodemgmt/nodemgmt-scripts.sh 2>&1
source /opt/idssys/dsmon/dsmon.sh
if [ "${2}" != "q" ]; then
echo -en "\e[1A";
echo -e "\e[0K\r ${idsCL[Green]}Updates Completed${idsCL[Default]}"
echo -e "\e[0K\r ${idsCL[Green]}Updated to v${VERS}${idsCL[Default]}"
fi
elif [ "${2}" != "q" ]; then
echo -en "\e[1A";