Files
DOCKER_PHP_BASE/apache/entrypoint.d/27-sqlite.sh
T
2026-10-31 19:16:51 +01:00

9 lines
304 B
Bash

#!/bin/sh
# SQLite database initialization
if { grep -iq "^DB_CONNECTION=sqlite" .env && [ "$DB_CONNECTION" = "sqlite" ]; } || [ "$DEPLOY_ENV" = "sqlite" ]; then
if [ ! -f database/database.sqlite ]; then
echo "Creating empty SQLite database"
touch database/database.sqlite
fi
fi