Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
update
Murtaza Nasir5fe6f500f5c1
diff --git a/docker-entrypoint.sh b/docker-entrypoint.shindex af714ae1..683169d5 100644--- a/docker-entrypoint.sh+++ b/docker-entrypoint.sh@@ -10,16 +10,16 @@ if [ ! -f /data/instance/transcriptions.db ]; thenecho "Database doesn't exist. Creating new database..."python -c "from app import app, db; app.app_context().push(); db.create_all()"echo "Database created successfully."-- # Check if we need to create an admin user- if [ -n "$ADMIN_USERNAME" ] && [ -n "$ADMIN_EMAIL" ] && [ -n "$ADMIN_PASSWORD" ]; then- echo "Creating admin user using environment variables..."- python docker_create_admin.py- fielseecho "Database exists. Checking for schema updates..."python -c "from app import app; app.app_context().push()"fi+# Check if we need to create an admin user (regardless of whether the database exists)+if [ -n "$ADMIN_USERNAME" ] && [ -n "$ADMIN_EMAIL" ] && [ -n "$ADMIN_PASSWORD" ]; then+ echo "Creating admin user using environment variables..."+ python docker_create_admin.py+fi+# Start the applicationexec "$@"