sleep
This commit is contained in:
parent
8844cdaa90
commit
ea8a3caf45
|
|
@ -31,6 +31,8 @@ sed -i "s/^PORT=.*/PORT=${port}/" "/home/${USERNAME}/cms.${DOMAIN_NAME}/.env"
|
|||
# Start the services using Docker Compose
|
||||
docker compose -f "/home/${USERNAME}/cms.${DOMAIN_NAME}/docker-compose.yml" up -d
|
||||
|
||||
sleep 10
|
||||
|
||||
# Wait for the database to be ready
|
||||
echo "Waiting for Directus database to be ready..."
|
||||
until docker exec -i "${DOMAIN_NAME}_Directus_DB" mariadb -uroot -e "SELECT 1 FROM directus.directus_roles LIMIT 1" &> /dev/null
|
||||
|
|
|
|||
Loading…
Reference in New Issue