This commit is contained in:
vincent 2024-05-15 20:29:45 +08:00
parent 962800b786
commit 3e8309bd5b

View File

@ -1,6 +1,7 @@
#!/bin/bash
docker_compose_file="../docker-compose.yml"
script_dir="$(dirname "$(realpath "$0")")" # 当前脚本所在目录的绝对路径
docker_compose_file=$(readlink -f "$script_dir/../docker-compose.yml") # docker-compose.yaml文件路径
# 检查是否存在 docker-compose.yml 文件
if [ ! -f $docker_compose_file ]; then