Use sogo-tool to expire session

tags/ipasserelle-groupware-0.2.37-1 0.2.18_el6
Daniel Berteaud 10 years ago
parent c217527459
commit 68a1c2bb80
  1. 3
      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"

Loading…
Cancel
Save