Update mm-scripts.sh

This commit is contained in:
2023-04-22 22:30:04 -05:00
parent ed5e1bf8c0
commit 38bfa582eb

View File

@@ -1196,11 +1196,9 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
[ ! -f ${MMFOLDER}/mm.stop ] && MMSTART ${action} ${2} [ ! -f ${MMFOLDER}/mm.stop ] && MMSTART ${action} ${2}
[ "${action}" != "status" ] && rm -f ${MMFOLDER}/mm.stop.checking [ "${action}" != "status" ] && rm -f ${MMFOLDER}/mm.stop.checking
;; ;;
stop) stop)
MMSTOP MMSTOP
;; ;;
restart) restart)
if [ -f ${MMFOLDER}/mm.stop ]; then if [ -f ${MMFOLDER}/mm.stop ]; then
echo -e "${stopmsg}" echo -e "${stopmsg}"
@@ -1213,7 +1211,6 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
echo -e "${idsCL[Green]}Done${idsCL[Default]}" echo -e "${idsCL[Green]}Done${idsCL[Default]}"
MMSTART ${action} MMSTART ${action}
;; ;;
status) status)
if [ -f ${MMFOLDER}/mm.stop ]; then if [ -f ${MMFOLDER}/mm.stop ]; then
echo -e "${stopmsg}" echo -e "${stopmsg}"
@@ -1221,17 +1218,16 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
fi fi
MMSTATUS ${2} MMSTATUS ${2}
;; ;;
setup) setup)
MMSETUP MMSETUP
;; ;;
vpninfo) vpninfo)
GETVPNINFO GETVPNINFO
;; ;;
speedtest)
VPNSPEEDTEST
;;
update);; update);;
update-service) update-service)
UPDATESERVICE ${2} UPDATESERVICE ${2}
;; ;;
@@ -1241,15 +1237,12 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
[ "${MM_UPDATE_REPO[${usrvc}]}" != "" ] && UPDATESERVICE ${usrvc} [ "${MM_UPDATE_REPO[${usrvc}]}" != "" ] && UPDATESERVICE ${usrvc}
done done
;; ;;
update-list) update-list)
SHOWSRVCUPDATES SHOWSRVCUPDATES
;; ;;
clear) echo -e "${idsCL[LightCyan]}Clearing all mm.* files ${idsCL[Default]}" clear) echo -e "${idsCL[LightCyan]}Clearing all mm.* files ${idsCL[Default]}"
echo echo
;; ;;
*) USAGE;; *) USAGE;;
esac esac