Minor alterations to ddevcontainer.

This commit is contained in:
Adam Outler
2025-10-16 00:09:07 +00:00
parent de92c9563e
commit f57ec74cc1
9 changed files with 121 additions and 80 deletions

View File

@@ -1,16 +1,10 @@
#!/bin/sh
# first-run-check.sh - Checks and initializes configuration files on first run
# Check for app.conf
# Check for app.conf and deploy if required
if [ ! -f /app/config/app.conf ]; then
mkdir -p /app/config
cp /app/back/app.conf /app/config/app.conf
echo "🆕 First run detected: Default configuration initialized." >&2
fi
# Check for app.db
if [ ! -f /app/db/app.db ]; then
mkdir -p /app/db
cp /app/back/app.db /app/db/app.db
echo "🆕 First run detected: Fresh database created." >&2
fi