重构代码, 统一项目入口为install.sh.

This commit is contained in:
Olia Lisa
2026-01-15 12:25:16 +08:00
parent d5833833e0
commit 3715554dc2
11 changed files with 23 additions and 58 deletions
+1 -2
View File
@@ -3,7 +3,7 @@
update_docker_images(){
local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 脚本文件夹绝对路径
docker_compose_file="$script_dir/../docker-compose.yml" # docker-compose.yml文件路径
local docker_compose_file="$script_dir/../docker-compose.yml" # docker-compose.yml文件路径
# 检查是否存在 docker-compose.yml 文件
if [ ! -f $docker_compose_file ]; then
@@ -24,4 +24,3 @@ update_docker_images(){
docker-compose -f $docker_compose_file up -d
}
update_docker_images