Update mm-scripts.sh
This commit is contained in:
@@ -246,7 +246,7 @@ MMSTART(){
|
|||||||
|
|
||||||
if [ "${1}" == "start" ]; then
|
if [ "${1}" == "start" ]; then
|
||||||
#echo -e "${idsCL[LightCyan]}It may take a couple of minutes before all services fully start${idsCL[Default]}"
|
#echo -e "${idsCL[LightCyan]}It may take a couple of minutes before all services fully start${idsCL[Default]}"
|
||||||
MMSTATUS
|
MMSTATUS full
|
||||||
fi
|
fi
|
||||||
if [ -f /opt/idssys/mediamanager/mm.vpn.fail* ]; then
|
if [ -f /opt/idssys/mediamanager/mm.vpn.fail* ]; then
|
||||||
echo "$(date) - VPN issue has been fixed" >> $logfile
|
echo "$(date) - VPN issue has been fixed" >> $logfile
|
||||||
@@ -371,7 +371,7 @@ MMSTATUS(){
|
|||||||
|
|
||||||
else
|
else
|
||||||
echo -e "${idsCL[Green]}Running${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Running${idsCL[Default]}"
|
||||||
if [[ ${srvc} == *"vpn"* ]] || [[ ${srvc} == *"wireguard"* ]]; then
|
if [[ ${srvc} == *"vpn"* ]] || [[ ${srvc} == *"wireguard"* ]] || [ "${1}" = "full" ]; then
|
||||||
zerogw=$(ip route show | grep 0.0.0.0 | cut -d' ' -f 3)
|
zerogw=$(ip route show | grep 0.0.0.0 | cut -d' ' -f 3)
|
||||||
defaultgw=$(ip route show | grep default | cut -d' ' -f 3)
|
defaultgw=$(ip route show | grep default | cut -d' ' -f 3)
|
||||||
echo -e " |- 0.0.0.0 gateway : ${idsCL[Green]}$zerogw${idsCL[Default]}"
|
echo -e " |- 0.0.0.0 gateway : ${idsCL[Green]}$zerogw${idsCL[Default]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user