Update mm-scripts.sh
This commit is contained in:
@@ -909,8 +909,6 @@ UPDATESERVICE(){
|
|||||||
else
|
else
|
||||||
echo -e "${idsCL[LightCyan]}Update Not Available${idsCL[Default]}"
|
echo -e "${idsCL[LightCyan]}Update Not Available${idsCL[Default]}"
|
||||||
echo "$(date) - Updating Service (${usrvc}) : Update Not Needed" >> $logfile
|
echo "$(date) - Updating Service (${usrvc}) : Update Not Needed" >> $logfile
|
||||||
|
|
||||||
# SERVICEBACKUP ${usrvc}
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
@@ -998,8 +996,6 @@ UPDATESERVICE(){
|
|||||||
echo -e "${idsCL[LightCyan]}Update Not Available${idsCL[Default]}"
|
echo -e "${idsCL[LightCyan]}Update Not Available${idsCL[Default]}"
|
||||||
echo "$(date) - Updating Service (${usrvc}) : Update Not Needed" >> $logfile
|
echo "$(date) - Updating Service (${usrvc}) : Update Not Needed" >> $logfile
|
||||||
|
|
||||||
# SERVICEBACKUP ${usrvc}
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
elif [ "${MM_UPDATE_REPO[${usrvc}]}" == "systemd" ]; then
|
elif [ "${MM_UPDATE_REPO[${usrvc}]}" == "systemd" ]; then
|
||||||
@@ -1031,7 +1027,6 @@ UPDATESERVICE(){
|
|||||||
echo -e "${idsCL[LightCyan]}Update Not Available${idsCL[Default]}"
|
echo -e "${idsCL[LightCyan]}Update Not Available${idsCL[Default]}"
|
||||||
echo "$(date) - Updating Service (${usrvc}) : Update not needed" >> $logfile
|
echo "$(date) - Updating Service (${usrvc}) : Update not needed" >> $logfile
|
||||||
|
|
||||||
# SERVICEBACKUP ${usrvc}
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
@@ -1093,8 +1088,10 @@ SERVICEBACKUP(){
|
|||||||
done
|
done
|
||||||
|
|
||||||
elif [ "${usrvc}" != "" ]; then
|
elif [ "${usrvc}" != "" ]; then
|
||||||
|
if [ "${3}" == "true" ] || [ "${2}" == "true" ]; then
|
||||||
echo -e "${idsCL[Green]}Backing up ${usrvc^} Service${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Backing up ${usrvc^} Service${idsCL[Default]}"
|
||||||
DIVIDER . lightGreen
|
DIVIDER . lightGreen
|
||||||
|
fi
|
||||||
|
|
||||||
msg="Stopping Service "; c=0; spc=''; spc1=$((${cw_spc}-${#msg})); until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
msg="Stopping Service "; c=0; spc=''; spc1=$((${cw_spc}-${#msg})); until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
||||||
@@ -1674,9 +1671,7 @@ if [ ! -f ${TMPFOLDER}/mm.update.stop ]; then
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
update) UPDATESERVICE ${2} ${3} ${4};;
|
update) UPDATESERVICE ${2} ${3} ${4};;
|
||||||
update-list) SHOWSRVCUPDATES;;
|
backup) SERVICEBACKUP ${2} ${3} true;;
|
||||||
update-service) UPDATESERVICE ${2} ${3};;
|
|
||||||
backup) SERVICEBACKUP ${2} ${3};;
|
|
||||||
|
|
||||||
*) USAGE;;
|
*) USAGE;;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user