1
0
mirror of https://github.com/6dylan6/jdpro.git synced 2026-05-03 19:33:05 +08:00
This commit is contained in:
dylan
2023-11-04 13:46:22 +08:00
parent 078e8ef82a
commit c85399ec52
+3 -2
View File
@@ -25,7 +25,7 @@ else
fi
grep '6dylan6_1029' /ql/data/config/task_before.sh >/dev/null 2>&1 || grep '6dylan6_1029' /ql/config/task_before.sh > /dev/null 2>&1
if [[ $? != 0 ]];then
cp /ql/repo/${repo}/docker/task_before.sh /ql/config/ >/dev/null 2>&1 || cp /ql/data/repo/${repo}/docker/task_before.sh /ql/data/config/
cp /ql/repo/${repo}/docker/task_before.sh /ql/config/ >/dev/null 2>&1 || cp /ql/data/repo/${repo}/docker/task_before.sh /ql/data/config/ > /dev/null 2>&1
fi
[[ $QL_DIR == /ql ]] && dir_root=$QL_DIR
[[ -d $dir_root/data ]] && dir_data=$dir_root/data
@@ -34,8 +34,9 @@ fi
[[ -d $dir_data/repo ]] && dir_repo=$dir_data/repo
[[ -d $dir_data/deps ]] && dir_deps=$dir_data/deps
[[ -d $dir_data/log ]] && dir_log=$dir_data/log
[[ -d `echo /ql/data/log/${repo}*|awk '{print $1}'` ]] && dir_code=`ls -dt /ql/data/log/${repo}*|awk '{print $1}'|head -1`
[[ -d `echo /ql/data/log/${repo}*|awk '{print $1}'` ]] && dir_code=`ls -dt /ql/data/log/${repo}_jd_sharecode*|awk '{print $1}'|head -1`
[[ $AUTOCFG == true ]] && cp $dir_repo/6dylan6_jdpro/sendNotify.js $dir_deps/ > /dev/null 2>&1
## 预设的仓库及默认调用仓库设置
## 将"repo=$repo1"改成repo=$repo2"或其他,以默认调用其他仓库脚本日志
## 也可自行搜索本脚本内的"name_js=("和"name_js_only",将"repo"改成"repo2"或其他,用以自由组合调用仓库的脚本日志