From 3eb3a9ff9fb6c8a28b130f963f58e5e8c78fb7de Mon Sep 17 00:00:00 2001 From: Zoey Date: Thu, 23 Feb 2023 18:19:51 +0100 Subject: [PATCH] remove -w from grep Co-authored-by: Simon L. 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 cccda17f..f5de8a50 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 sudo -u www-data 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 -q "^nextcloud-aio-domaincheck$"; then sudo -u www-data docker container remove nextcloud-aio-domaincheck fi