parent
112a8de6d5
commit
de0b407a0a
1 changed files with 1 additions and 2 deletions
@ -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…
Reference in new issue