#!/bin/bash set -e # Create necessary directories mkdir -p instance downloads # Check if the database needs to be initialized if [ ! -f instance/podcastrr.db ]; then echo "Initializing database..." python init_db.py else echo "Database already exists, checking for migrations..." python run_migrations.py fi # Start the application exec python main.py