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

9 lines
267 B
Bash

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