update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
VERS='3.8.123-04232023'
|
||||
VERS='3.8.124-04232023'
|
||||
|
||||
MMFOLDER="/opt/idssys/mediamanager"
|
||||
MMSRV=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
|
||||
|
||||
@@ -153,7 +153,7 @@ MMSTART(){
|
||||
fi
|
||||
|
||||
vpnuptime=$(expr `date +%s` - $(stat -c %Y ${MMFOLDER}/vpninfo))
|
||||
if [ ${vpnuptime} -ge 200 ]; then
|
||||
if [ ${vpnuptime} -ge 86400 ]; then
|
||||
echo "$(date) - 24hr session limit reached, restarting vpn & services" >> $logfile
|
||||
echo -en "${idsCL[LightCyan]}24hr session limit reached, restarting vpn & services ."
|
||||
[ -f ${MMFOLDER}/mm.noservices ] && rv="vpn" || rv=""
|
||||
|
||||
Reference in New Issue
Block a user