Merge pull request #328 from nextcloud/enh/noid/check-startup-command

check if the startup command was executed successfully
This commit is contained in:
Simon L 2022-03-09 12:40:44 +01:00 committed by GitHub
commit 20c46a3809
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,6 +62,15 @@ else
sleep 10 sleep 10
fi 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 # Check for other options
if [ -n "$NEXTCLOUD_MOUNT" ]; then if [ -n "$NEXTCLOUD_MOUNT" ]; then
if ! echo "$NEXTCLOUD_MOUNT" | grep -q "^/mnt/" \ if ! echo "$NEXTCLOUD_MOUNT" | grep -q "^/mnt/" \