From 1e96eed341be8da50c5beb3b55583f1b7ed72a38 Mon Sep 17 00:00:00 2001 From: Simon L Date: Sat, 4 Mar 2023 20:09:36 +0100 Subject: [PATCH] add a check if the mastercontainer volume is really connected to the mastercontainer Signed-off-by: Simon L --- Containers/mastercontainer/start.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Containers/mastercontainer/start.sh b/Containers/mastercontainer/start.sh index 5414ef3b..b52e81cb 100644 --- a/Containers/mastercontainer/start.sh +++ b/Containers/mastercontainer/start.sh @@ -85,6 +85,10 @@ elif ! sudo -u www-data docker volume ls --format "{{.Name}}" | grep -q "^nextcl echo "It seems like you did not give the mastercontainer volume the correct name? Using a different name is not supported!" exit 1 +elif ! sudo -u www-data docker inspect nextcloud-aio-mastercontainer | grep -q "nextcloud_aio_mastercontainer"; then + echo "It seems like you did not attach the nextcloud_aio_mastercontainer volume to the mastercontainer? +This is not supported!" + exit 1 fi # Check for other options