Update mm-scripts.sh
This commit is contained in:
@@ -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 "."
|
||||
|
||||
Reference in New Issue
Block a user