Update mm-scripts.sh

This commit is contained in:
2023-07-09 23:07:23 -05:00
parent afe6be5786
commit 74f6c0fd09

View File

@@ -1160,6 +1160,16 @@ SERVICEBACKUPSTART(){
fi
}
SERVICERESTORE(){
srvc=${1}
BACKUPDIR=${MM_BACKUP_FOLDER}/${srvc}
echo -e "${idsCL[LightCyan]}Select a backup to restore:${idsCL[Default]}"
echo; f=1
for FILE in ${BACKUPDIR}/*.tgz; do
echo -e "[${f}] ${FILE}"
done
}
SHOWSRVCUPDATES(){
echo -e "${idsCL[White]}${idsST[Bold]}Latest Available Service Releases${idsST[Reset]}${idsCL[Default]}"
DIVIDER . lightGreen
@@ -1662,6 +1672,7 @@ if [ ! -f ${TMPFOLDER}/mm.update.stop ]; then
update) UPDATESERVICE ${2} ${3} ${4};;
backup) SERVICEBACKUP ${2} ${3} true;;
restore) SERVICERESTORE ${2} ${3};;
*) USAGE;;