mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
correctly delete sessions older than 24h
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
2caa883453
commit
17eb732a89
2 changed files with 2 additions and 5 deletions
|
|
@ -6,5 +6,7 @@ while true; do
|
|||
sudo -u www-data php /var/www/docker-aio/php/src/Cron/cron.php
|
||||
# Remove dangling images
|
||||
sudo -u www-data docker image prune -f
|
||||
# Remove sessions older than 24h
|
||||
find "/mnt/docker-aio-config/session/" -mindepth 1 -mmin +1440 -delete
|
||||
sleep 1d
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue