Update mm-scripts.sh
This commit is contained in:
@@ -875,9 +875,8 @@ UPDATESERVICE(){
|
||||
installed_ver=`echo ${latest_release_url} | cut -d/ -f8`
|
||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||
|
||||
msg="Installing version"
|
||||
c=0; spc=''; spc1=$((${cw_spc}-${#msg}))
|
||||
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||
if [ "${latest_release_url}" != "${installed_ver}" ]; then
|
||||
msg="Installing version"; c=0; spc=''; spc1=$((${cw_spc}-${#msg})); until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||
echo -e "${idsCL[White]}${msg}${spc} : ${idsCL[Green]}${installed_ver}${idsCL[Default]}"
|
||||
|
||||
msg="Downloading and updating"
|
||||
@@ -952,6 +951,17 @@ UPDATESERVICE(){
|
||||
echo "$(date) - Updating Service (${usrvc}) : Completed" >> $logfile
|
||||
echo -e "${idsCL[Green]}${usrvc^} Service has been updated${idsCL[Default]}"
|
||||
|
||||
else
|
||||
msg="Latest Version"; c=0; spc=''; spc1=$((${cw_spc}-${#msg})); until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||
echo -e "${idsCL[White]}${msg}${spc} : ${idsCL[Green]}${installed_ver}${idsCL[Default]}"
|
||||
|
||||
cver=${usrvc}_VER
|
||||
msg="Current Version"; c=0; spc=''; spc1=$((${cw_spc}-${#msg})); until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||
echo -e "${idsCL[White]}${msg}${spc} : ${idsCL[Green]}${!cver}${idsCL[Default]}"
|
||||
echo -e " ${idsCL[White]}Update Not Needed${idsCL[Green]}${installed_ver}${idsCL[Default]}"
|
||||
|
||||
fi
|
||||
|
||||
else
|
||||
echo -e "${idsCL[Red]}Not currently available to update${idsCL[Default]}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user