9 lines
304 B
Bash
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
|