mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-09-19 21:16:59 +08:00
remove volume prune as we don't want to risk anything
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
b0fc3fb953
commit
3206ce4d16
1 changed files with 0 additions and 7 deletions
|
@ -6,12 +6,5 @@ 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 dangling volumes
|
||||
unset DANGLING_VOLUMES
|
||||
DANGLING_VOLUMES="$(sudo -u www-data docker volume ls --filter dangling=true | awk '{print $2}' | grep -v "nextcloud_aio_\|^VOLUME$")"
|
||||
mapfile -t DANGLING_VOLUMES <<< "$DANGLING_VOLUMES"
|
||||
for volume in "${DANGLING_VOLUMES[@]}"; do
|
||||
sudo -u www-data docker volume rm "$volume"
|
||||
done
|
||||
sleep 1d
|
||||
done
|
||||
|
|
Loading…
Add table
Reference in a new issue