From b86c1f490a0ca28b2fa80f376464a960b074fe46 Mon Sep 17 00:00:00 2001 From: Simon L Date: Thu, 1 Dec 2022 16:20:00 +0100 Subject: [PATCH] check if vfs or fuse-overlayfs is used Signed-off-by: Simon L --- Containers/mastercontainer/start.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Containers/mastercontainer/start.sh b/Containers/mastercontainer/start.sh index 7c0276de..eac30fb0 100644 --- a/Containers/mastercontainer/start.sh +++ b/Containers/mastercontainer/start.sh @@ -65,6 +65,17 @@ else sleep 10 fi +# Check Storage drivers +STORAGE_DRIVER="$(docker info | grep "Storage Driver")" +# Check if vfs is used: https://github.com/nextcloud/all-in-one/discussions/1467 +if echo "$STORAGE_DRIVER" | grep -q vfs; then + echo "$STORAGE_DRIVER" + echo "Warning: It seems like the storage driver vfs is used. This will lead to problems with disk space and performance and is disrecommended!" +elif echo "$STORAGE_DRIVER" | grep -q fuse-overlayfs; then + echo "$STORAGE_DRIVER" + echo "Warning: It seems like the storage driver fuse-overlayfs is used. Please check if you can switch to overlay2 instead." +fi + # Check if startup command was executed correctly if ! sudo -u www-data docker ps | grep -q "nextcloud-aio-mastercontainer"; then echo "It seems like you did not give the mastercontainer the correct name?