8 lines
256 B
Bash
8 lines
256 B
Bash
#!/bin/bash
|
|
|
|
TIME=$(/sbin/e-smith/db configuration getprop sogod SessionDuration || echo 1440)
|
|
TIME=$(($TIME*60))
|
|
|
|
# Remove old SOGo sessions entries
|
|
/usr/bin/mysql sogo -e "delete from sogo_sessions_folder where unix_timestamp(now())-c_lastseen > $TIME;"
|