Sync config.json to config.db for manual modify admin_mode and other configs

This commit is contained in:
icy
2025-10-31 15:24:18 +08:00
parent c7106bd256
commit 0f9978ec6b
3 changed files with 110 additions and 11 deletions
+2 -2
View File
@@ -114,10 +114,10 @@ read_env_vars() {
}
# ------------------------------------------------------------------------
# Validation: Database File (trading.db)
# Validation: Database File (config.db)
# ------------------------------------------------------------------------
check_database() {
if [ ! -f "trading.db" ]; then
if [ ! -f "config.db" ]; then
print_info "数据库文件不存在,系统将在启动时自动创建"
else
print_success "数据库文件存在"