mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
check if the startup command was executed successfully
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
b929d57a77
commit
7a18cf766d
1 changed files with 9 additions and 0 deletions
|
|
@ -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/" \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue