Update mm-scripts.sh
This commit is contained in:
@@ -32,7 +32,7 @@ unset IFS
|
|||||||
|
|
||||||
MMSTART(){
|
MMSTART(){
|
||||||
[ $VERBOSE = true ] && chktmstart=`date +%s`
|
[ $VERBOSE = true ] && chktmstart=`date +%s`
|
||||||
if [ "${1}" = "start" ] || [ "${1}" = "" ]; then
|
if [ "${1}" = "start" ] || [ "${1}" = "restart" ] || [ "${1}" = "" ]; then
|
||||||
GOFORSTART=true;
|
GOFORSTART=true;
|
||||||
|
|
||||||
elif [ "${1}" = "check" ] && [ "$(ip link | grep "wg-torguard")" = "" ] && [ ! -f /opt/idssys/mediamanager/mm.vpn* ]; then
|
elif [ "${1}" = "check" ] && [ "$(ip link | grep "wg-torguard")" = "" ] && [ ! -f /opt/idssys/mediamanager/mm.vpn* ]; then
|
||||||
@@ -479,7 +479,7 @@ if [ ! -f /opt/idssys/mediamanager/mm.update.stop ]; then
|
|||||||
echo -en "${idsCL[LightCyan]}Pausing for 10secs... ${idsCL[Default]}"
|
echo -en "${idsCL[LightCyan]}Pausing for 10secs... ${idsCL[Default]}"
|
||||||
sleep 10s
|
sleep 10s
|
||||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
MMSTART;;
|
MMSTART ${action};;
|
||||||
|
|
||||||
status)
|
status)
|
||||||
if [ -f /opt/idssys/mediamanager/mm.stop ]; then
|
if [ -f /opt/idssys/mediamanager/mm.stop ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user