Update mm-scripts.sh
This commit is contained in:
@@ -914,9 +914,12 @@ MMSETUP(){
|
|||||||
echo
|
echo
|
||||||
read -n 1 -p "Do you wish to start services now (y/N)?" choice
|
read -n 1 -p "Do you wish to start services now (y/N)?" choice
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
[Yy]) echo;MMSTART start;; esac
|
[Yy]) echo;MMSTART start;;
|
||||||
|
esac
|
||||||
|
|
||||||
/usr/local/bin/mm
|
echo -e "${idsCL[LightCyan]}The following are Media Manager (mm) usage commands:${idsCL[Default]}"
|
||||||
|
DIVIDER . lightGreen
|
||||||
|
USAGE
|
||||||
|
|
||||||
# cat ${MMFOLDER}/settings.conf
|
# cat ${MMFOLDER}/settings.conf
|
||||||
;;
|
;;
|
||||||
@@ -929,6 +932,26 @@ MMSETUP(){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
USAGE(){
|
||||||
|
echo -e " Usage: ${idsCL[LightCyan]}mm {option}${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
echo -e " ${idsCL[Yellow]}start${idsCL[Default]} --> Start services"
|
||||||
|
echo -e " ${idsCL[Yellow]}stop${idsCL[Default]} --> Stop services"
|
||||||
|
echo -e " ${idsCL[Yellow]}restart${idsCL[Default]} --> Restart services"
|
||||||
|
echo -e " ${idsCL[Yellow]}update-allservices ${idsCL[Default]} --> Update all services"
|
||||||
|
echo -e " ${idsCL[Yellow]}update-service <service>${idsCL[Default]} --> Update specified service"
|
||||||
|
echo -e " ${idsCL[Yellow]}update-list${idsCL[Default]} --> List available releases"
|
||||||
|
echo
|
||||||
|
echo -e " ${idsCL[Yellow]}status${idsCL[Default]} --> Check Status on VPN and Media Services"
|
||||||
|
echo -e " ${idsCL[Yellow]}vpninfo${idsCL[Default]} --> Show VPN Info"
|
||||||
|
echo
|
||||||
|
echo -e " ${idsCL[Yellow]}check${idsCL[Default]} --> Crontab job for maintaining VPN & Media Services (run */1 min)"
|
||||||
|
echo -e " ${idsCL[Yellow]}clear${idsCL[Default]} --> Clear all tmp files"
|
||||||
|
echo -e " ${idsCL[Yellow]}update${idsCL[Default]} --> Check for and install new updates"
|
||||||
|
echo ""
|
||||||
|
echo ""
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
|
if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
|
||||||
if [ -f ${MMFOLDER}/mm.stop ]; then
|
if [ -f ${MMFOLDER}/mm.stop ]; then
|
||||||
@@ -1022,25 +1045,7 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
|
|||||||
echo
|
echo
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*) USAGE;;
|
||||||
echo -e " Usage: ${idsCL[LightCyan]}mm {option}${idsCL[Default]}"
|
|
||||||
echo
|
|
||||||
echo -e " ${idsCL[Yellow]}start${idsCL[Default]} --> Start services"
|
|
||||||
echo -e " ${idsCL[Yellow]}stop${idsCL[Default]} --> Stop services"
|
|
||||||
echo -e " ${idsCL[Yellow]}restart${idsCL[Default]} --> Restart services"
|
|
||||||
echo -e " ${idsCL[Yellow]}update-allservices ${idsCL[Default]} --> Update all services"
|
|
||||||
echo -e " ${idsCL[Yellow]}update-service <service>${idsCL[Default]} --> Update specified service"
|
|
||||||
echo -e " ${idsCL[Yellow]}update-list${idsCL[Default]} --> List available releases"
|
|
||||||
echo
|
|
||||||
echo -e " ${idsCL[Yellow]}status${idsCL[Default]} --> Check Status on VPN and Media Services"
|
|
||||||
echo -e " ${idsCL[Yellow]}vpninfo${idsCL[Default]} --> Show VPN Info"
|
|
||||||
echo
|
|
||||||
echo -e " ${idsCL[Yellow]}check${idsCL[Default]} --> Crontab job for maintaining VPN & Media Services (run */1 min)"
|
|
||||||
echo -e " ${idsCL[Yellow]}clear${idsCL[Default]} --> Clear all tmp files"
|
|
||||||
echo -e " ${idsCL[Yellow]}update${idsCL[Default]} --> Check for and install new updates"
|
|
||||||
echo ""
|
|
||||||
echo ""
|
|
||||||
exit 0;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user