Use sogo-tool to expire session

tags/0.2.18_el5 0.2.18_el5
Daniel Berteaud 11 years ago
parent 112a8de6d5
commit de0b407a0a
  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