From 73b4c2d3eab4a7ac460e24a1ac1ef23b1423dc0c Mon Sep 17 00:00:00 2001 From: Zoey Date: Thu, 23 Feb 2023 18:13:22 +0100 Subject: [PATCH] add missing sudo Signed-off-by: Zoey --- Containers/mastercontainer/cron.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containers/mastercontainer/cron.sh b/Containers/mastercontainer/cron.sh index f6250206..cccda17f 100644 --- a/Containers/mastercontainer/cron.sh +++ b/Containers/mastercontainer/cron.sh @@ -48,7 +48,7 @@ while true; do find "/mnt/docker-aio-config/session/" -mindepth 1 -mmin +1440 -delete # Remove nextcloud-aio-domaincheck container - if docker ps --format "{{.Names}}" --filter "status=exited" | grep -qw "^nextcloud-aio-domaincheck$"; then + if sudo -u www-data docker ps --format "{{.Names}}" --filter "status=exited" | grep -qw "^nextcloud-aio-domaincheck$"; then sudo -u www-data docker container remove nextcloud-aio-domaincheck fi