start script fix about config.json

This commit is contained in:
icy
2025-10-31 14:16:47 +08:00
parent dd88997d8e
commit 458f5c20cc

View File

@@ -78,16 +78,18 @@ check_env() {
} }
# ------------------------------------------------------------------------ # ------------------------------------------------------------------------
# Validation: Configuration File (config.json) - DEPRECATED # Validation: Configuration File (config.json) - BASIC SETTINGS ONLY
# ------------------------------------------------------------------------ # ------------------------------------------------------------------------
check_config() { check_config() {
if [ ! -f "config.json" ]; then if [ ! -f "config.json" ]; then
print_warning "config.json 不存在,从模板复制..." print_warning "config.json 不存在,从模板复制..."
cp config.example.jsonc config.json cp config.json.example config.json
print_info "⚠️ 注意:config.json 已弃用请使用Web界面进行配置" print_info "⚠️ 请编辑 config.json 配置基础设置管理员模式、JWT密钥等"
print_info "此文件仅作为参考保留" print_info "💡 交易员配置请使用Web界面不再需要在config.json中配置"
print_info "运行: nano config.json 或使用其他编辑器"
exit 1
fi fi
print_success "配置文件存在已弃用使用Web界面配置" print_success "配置文件存在"
} }
# ------------------------------------------------------------------------ # ------------------------------------------------------------------------