Update mm-scripts.sh
This commit is contained in:
@@ -182,7 +182,7 @@ MMSTART(){
|
||||
echo "$(date) - 24hr session limit reached, restarting vpn & services" >> ${MM_LOGFILE}
|
||||
echo -en "${idsCL[LightCyan]}24hr session limit reached, restarting vpn & services"
|
||||
else
|
||||
sessiontimeout=$(date -d@${MM_VPN_RESTART} -u "+%H%--%M%--%S%-")
|
||||
sessiontimeout=$(date -d@${MM_VPN_RESTART} -u "-%H-%M-%S")
|
||||
IFS='-'; read -a session_timeout <<< "${sessiontimeout}"; unset IFS
|
||||
sessiontimeout="${session_timeout[0]} hr"
|
||||
[ ${session_timeout[1]} -gt 0 ] && sessiontimeout="${sessiontimeout}, ${session_timeout[1]} min"
|
||||
|
||||
Reference in New Issue
Block a user