mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-21 15:06:50 +00:00
only remove domaincheck container if it is stopped
Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
parent
e2f92a30c6
commit
d7a174615c
1 changed files with 3 additions and 1 deletions
|
|
@ -48,7 +48,9 @@ while true; do
|
||||||
find "/mnt/docker-aio-config/session/" -mindepth 1 -mmin +1440 -delete
|
find "/mnt/docker-aio-config/session/" -mindepth 1 -mmin +1440 -delete
|
||||||
|
|
||||||
# Remove nextcloud-aio-domaincheck container
|
# Remove nextcloud-aio-domaincheck container
|
||||||
sudo -u www-data docker container remove nextcloud-aio-domaincheck --force
|
if docker ps --format "{{.Names}}" --filter "status=exited" | grep -qw "^nextcloud-aio-domaincheck$"; then
|
||||||
|
sudo -u www-data docker container remove nextcloud-aio-domaincheck
|
||||||
|
fi
|
||||||
|
|
||||||
# Remove dangling images
|
# Remove dangling images
|
||||||
sudo -u www-data docker image prune --force
|
sudo -u www-data docker image prune --force
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue