2
0

feat: default docker-compose config yaml

This commit is contained in:
zhangsz
2025-01-20 15:05:07 +08:00
parent db6e9abe6c
commit 691ef2a66c
4 changed files with 358 additions and 2 deletions

View File

@@ -46,6 +46,10 @@ case "$1" in
systemctl daemon-reload
systemctl enable wfccontrol.service
if [ ! -f ${docker_work_dir}/docker-compose.yml ]; then
cp ${docker_work_dir}/compose/docker-compose.yml ${docker_work_dir}/docker-compose.yml
fi
# 获取传入的IP地址
new_ip=$2
@@ -66,7 +70,7 @@ case "$1" in
if [ ! -d $conf_dir/default ]; then
continue
fi
# 遍历default目录下的文件
# 遍历config default配置文件
for file in "$conf_dir/default"/*; do
filename=$(basename "$file")