Update mm-scripts.sh

This commit is contained in:
2023-04-26 22:07:35 -05:00
parent 64879dcd8a
commit da4ac8e602

View File

@@ -153,7 +153,8 @@ MMSTART(){
vpnuptime=$(expr `date +%s` - $(stat -c %Y ${MMFOLDER}/vpninfo))
#if [ ${vpnuptime} -ge 86400 ]; then
if [ ${vpnuptime} -ge 1 ]; then
if [ ${vpnuptime} -ge 300 ]; then
echo "$(date) - 24hr session limit reached, restarting vpn & services" >> $logfile
echo -en "${idsCL[LightCyan]}24hr session limit reached, restarting vpn & services ."
MMSTOP >/dev/null 2>&1
echo -en "."