mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-11-16 03:56:02 +08:00
8d062f7461
Signed-off-by: Simon L. <szaimen@e.mail.de>
17 lines
366 B
Bash
17 lines
366 B
Bash
#!/bin/bash
|
|
|
|
# Only start container if nextcloud is accessible
|
|
while ! nc -z "$REDIS_HOST" 6379; do
|
|
echo "Waiting for redis to start..."
|
|
sleep 5
|
|
done
|
|
|
|
# Set a default for redis db index
|
|
if [ -z "$REDIS_DB_INDEX" ]; then
|
|
REDIS_DB_INDEX=0
|
|
fi
|
|
|
|
export REDIS_URL="redis://:$REDIS_HOST_PASSWORD@$REDIS_HOST/$REDIS_DB_INDEX"
|
|
|
|
# Run it
|
|
exec npm run server:start
|