parent
c217527459
commit
68a1c2bb80
1 changed files with 1 additions and 2 deletions
@ -1,7 +1,6 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
|
|
||||||
TIME=$(/sbin/e-smith/db configuration getprop sogod SessionDuration || echo 1440) |
TIME=$(/sbin/e-smith/db configuration getprop sogod SessionDuration || echo 1440) |
||||||
TIME=$(($TIME*60)) |
|
||||||
|
|
||||||
# Remove old SOGo sessions entries |
# 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