Update mm-scripts.sh
This commit is contained in:
@@ -34,10 +34,10 @@ MMSTART(){
|
||||
[ $VERBOSE = true ] && chktmstart=`date +%s`
|
||||
if [ "${1}" = "start" ] || [ "${1}" = "" ]; then
|
||||
GOFORSTART=true;
|
||||
elif [ "${1}" = "check" ] && [ "$(systemctl is-active openvpn)" != "active" ] && [ ! -f /opt/idssys/mediamanager/mm.vpn* ]; then
|
||||
elif [ "${1}" = "check" ] && [ "$(ip link | grep "Torguard")" = "" ] && [ ! -f /opt/idssys/mediamanager/mm.vpn* ]; then
|
||||
GOFORSTART=true;
|
||||
[ "${EMAIL_NOTICE}" != "" ] && echo "" | mail -s "Starting Media Management Systems" ${EMAIL_NOTICE}
|
||||
echo "$(date) - Starting Media Management system - (openvpn not running)" >> $logfile
|
||||
echo "$(date) - Starting Media Management system - (wireguard not running)" >> $logfile
|
||||
echo -e "${idsCL[LightCyan]}Fresh startup${idsCL[Default]}"
|
||||
else
|
||||
GOFORSTART=false;
|
||||
@@ -323,7 +323,7 @@ MMSTATUS(){
|
||||
# statusArray=("openvpn")
|
||||
# fi
|
||||
#statusArray=(nordvpn openvpn)
|
||||
statusArray=(openvpn)
|
||||
statusArray=(wireguard)
|
||||
statusArray+=(${SERVICES_CHECK[@]})
|
||||
echo
|
||||
for srvc in "${statusArray[@]}"; do
|
||||
|
||||
Reference in New Issue
Block a user