diff --git a/root/etc/cron.hourly/sogo-sessions b/root/etc/cron.hourly/sogo-sessions index 7c0f46d..d88779f 100644 --- a/root/etc/cron.hourly/sogo-sessions +++ b/root/etc/cron.hourly/sogo-sessions @@ -1,7 +1,6 @@ #!/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;" +su -l -s /bin/bash sogo -c "/usr/sbin/sogo-tool expire-sessions $TIME"