Update mm-scripts.sh

This commit is contained in:
2022-01-23 14:22:41 -06:00
parent 3e7feca288
commit 99bf80a113

View File

@@ -71,33 +71,30 @@ MMSTOP(){
}
if [ ${action-x} ]; then
case $action in
start | check)
if [ -f /opt/mm.stop ] && [ "${action}" = "check" ]; then
echo -e "${idsCL[Yellow]}The system is currently stopped${idsCL[Default]}"
exit 0
fi
touch /opt/mm.stop
MMSTART;;
stop)
touch /opt/mm.stop
MMSTOP;;
update);;
*)
echo -e "Usage: ${idsCL[LightCyan]}mm${idsCL[Default]} {"
echo -e " ${idsCL[Yellow]}start${idsCL[Default]}"
echo -e " ${idsCL[Yellow]}stop${idsCL[Default]}"
echo -e "}"
echo ""
echo ""
exit 0;;
esac
fi
case $action in
start | check)
if [ -f /opt/mm.stop ] && [ "${action}" = "check" ]; then
echo -e "${idsCL[Yellow]}The system is currently stopped${idsCL[Default]}"
exit 0
fi
touch /opt/mm.stop
MMSTART;;
stop)
touch /opt/mm.stop
MMSTOP;;
update);;
*)
echo -e "Usage: ${idsCL[LightCyan]}mm${idsCL[Default]} {"
echo -e " ${idsCL[Yellow]}start${idsCL[Default]}"
echo -e " ${idsCL[Yellow]}stop${idsCL[Default]}"
echo -e "}"
echo ""
echo ""
exit 0;;
esac
exit 0