From 7a18cf766d345b490756e588c231b5e05fd8d852 Mon Sep 17 00:00:00 2001 From: szaimen Date: Tue, 8 Mar 2022 18:36:08 +0100 Subject: [PATCH] check if the startup command was executed successfully Signed-off-by: szaimen --- Containers/mastercontainer/start.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Containers/mastercontainer/start.sh b/Containers/mastercontainer/start.sh index 77587767..91ad7fa0 100755 --- a/Containers/mastercontainer/start.sh +++ b/Containers/mastercontainer/start.sh @@ -62,6 +62,15 @@ else sleep 10 fi +# Check if startup command was executed correctly +if ! docker ps | grep -q "nextcloud-aio-mastercontainer"; then + echo "It seems like you did not give the mastercontainer the correct name?" + exit 1 +elif ! docker volume ls | grep -q "nextcloud_aio_mastercontainer"; then + echo "It seems like you did not give the mastercontainer volume the correct name?" + exit 1 +fi + # Check for other options if [ -n "$NEXTCLOUD_MOUNT" ]; then if ! echo "$NEXTCLOUD_MOUNT" | grep -q "^/mnt/" \