From f3260637db768806bef0b1c048ff8143c0ccd2d6 Mon Sep 17 00:00:00 2001 From: sagit Date: Thu, 12 Feb 2026 08:44:11 +0000 Subject: [PATCH] fix(install): prioritize explicit sqlite selection over stale DATABASE_URL Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- panel_install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/panel_install.sh b/panel_install.sh index 83d7bc6..ca70f48 100755 --- a/panel_install.sh +++ b/panel_install.sh @@ -250,7 +250,9 @@ get_current_db_type() { db_type=$(get_env_var "DB_TYPE") database_url=$(get_env_var "DATABASE_URL") - if [[ "$db_type" == "postgres" || "$database_url" == postgres://* || "$database_url" == postgresql://* ]]; then + if [[ "$db_type" == "sqlite" ]]; then + echo "sqlite" + elif [[ "$db_type" == "postgres" || "$database_url" == postgres://* || "$database_url" == postgresql://* ]]; then echo "postgres" else echo "sqlite"