Merge pull request #2107 from nextcloud/enh/noid/add-another-volume-check

add a check if the mastercontainer volume is really connected to the mastercontainer
This commit is contained in:
Simon L 2023-03-07 09:53:20 +01:00 committed by GitHub
commit e218c1d041
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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