smeserver-sogo/root/etc/cron.hourly/sogo-sessions

7 lines
202 B
Plaintext
Raw Normal View History

#!/bin/bash
TIME=$(/sbin/e-smith/db configuration getprop sogod SessionDuration || echo 1440)
# Remove old SOGo sessions entries
su -l -s /bin/bash sogo -c "/usr/sbin/sogo-tool expire-sessions $TIME"