2021-11-30 18:20:42 +08:00
|
|
|
#!/bin/sh
|
2021-12-08 01:35:18 +08:00
|
|
|
set -eux
|
2021-11-30 18:20:42 +08:00
|
|
|
|
|
|
|
while true; do
|
2021-12-09 05:35:09 +08:00
|
|
|
# Check for updates and send notification if yes
|
2021-12-03 20:13:51 +08:00
|
|
|
sudo -u www-data php /var/www/docker-aio/php/src/Cron/cron.php
|
2021-12-09 05:35:09 +08:00
|
|
|
# Remove dangling images
|
2021-12-08 01:35:18 +08:00
|
|
|
sudo -u www-data docker image prune -f
|
2022-03-08 22:16:16 +08:00
|
|
|
# Remove sessions older than 24h
|
|
|
|
find "/mnt/docker-aio-config/session/" -mindepth 1 -mmin +1440 -delete
|
2021-11-30 18:20:42 +08:00
|
|
|
sleep 1d
|
|
|
|
done
|