Update mm-scripts.sh

This commit is contained in:
2022-06-04 19:13:57 -05:00
parent 8ead1af838
commit c875959afb

View File

@@ -3,6 +3,8 @@
action="$1"
VERBOSE=true
source /opt/idssys/defaults/colors.inc
source /opt/idssys/defaults/default.inc
@@ -35,7 +37,8 @@ MMSTART(){
echo "$(date) - Checking VPN..." >> $logfile
mmsv='Verifying'
fi
echo "$(date) - ${mmsv} VPN..." >> $logfile
#[ $VERBOSE = true ] echo "$(date) - ${mmsv} VPN..." >> $logfile
OUT=$(ip link | grep "$VPN_INTERFACE")
@@ -91,6 +94,7 @@ MMSTART(){
MMSTOP
sleep 1m
"${VPN_START[@]}"
sleep 5s
rm -f /opt/mm.stop
exit 1
fi
@@ -111,6 +115,7 @@ MMSTART(){
MMSTOP
sleep 1m
"${VPN_START[@]}"
sleep 5s
rm -f /opt/mm.stop
exit 1
fi