This commit is contained in:
Valentin 2024-11-29 01:31:34 +01:00
parent 8844cdaa90
commit ea8a3caf45
1 changed files with 2 additions and 0 deletions

View File

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