diff --git a/install.sh b/install.sh index 06ee50e..579512c 100644 --- a/install.sh +++ b/install.sh @@ -131,9 +131,30 @@ deploy_files() { cp -rf "${BUILD_DIR}/templates" "${INSTALL_DIR}/templates" cp -rf "${BUILD_DIR}/static" "${INSTALL_DIR}/static" - # 复制配置文件(仅当配置目录下不存在时) + # 复制配置文件(仅当配置目录下不存在时预生成) if [[ ! -f "${CONFIG_DIR}/config.toml" ]]; then - info "配置文件不存在,程序首次启动将自动生成默认配置" + info "预生成默认配置文件 ..." + cat > "${CONFIG_DIR}/config.toml" <