mirror of
https://github.com/6dylan6/jdpro.git
synced 2026-05-02 02:36:40 +08:00
1
This commit is contained in:
+5
-5
@@ -2,10 +2,7 @@
|
|||||||
#15 3,23 * * * jd_sharecode.sh
|
#15 3,23 * * * jd_sharecode.sh
|
||||||
#new Env('获取互助码');
|
#new Env('获取互助码');
|
||||||
## Build 20220325-001-test
|
## Build 20220325-001-test
|
||||||
grep '6dylan6_0126' /ql/data/config/task_before.sh >/dev/null 2>&1 || grep '6dylan6_0126' /ql/config/task_before.sh > /dev/null 2>&1
|
|
||||||
if [[ $? != 0 ]];then
|
|
||||||
cp /ql/repo/6dylan6_jdpro/docker/task_before.sh /ql/config/ >/dev/null 2>&1 || cp /ql/data/repo/6dylan6_jdpro/docker/task_before.sh /ql/data/config/
|
|
||||||
fi
|
|
||||||
DIR="$( cd "$( dirname $0 )" >/dev/null 2>&1 && pwd )"
|
DIR="$( cd "$( dirname $0 )" >/dev/null 2>&1 && pwd )"
|
||||||
## 导入通用变量与函数
|
## 导入通用变量与函数
|
||||||
#dir_shell=/ql/shell
|
#dir_shell=/ql/shell
|
||||||
@@ -25,7 +22,10 @@ else
|
|||||||
dir_code=$dir_log/6dylan6_jdpro_main_jd_sharecode
|
dir_code=$dir_log/6dylan6_jdpro_main_jd_sharecode
|
||||||
repo='6dylan6_jdpro_main'
|
repo='6dylan6_jdpro_main'
|
||||||
fi
|
fi
|
||||||
|
grep '6dylan6_0126' /ql/data/config/task_before.sh >/dev/null 2>&1 || grep '6dylan6_0126' /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/
|
||||||
|
fi
|
||||||
[[ $QL_DIR == /ql ]] && dir_root=$QL_DIR
|
[[ $QL_DIR == /ql ]] && dir_root=$QL_DIR
|
||||||
[[ -d $dir_root/data ]] && dir_data=$dir_root/data
|
[[ -d $dir_root/data ]] && dir_data=$dir_root/data
|
||||||
[[ -d $dir_data/config ]] && dir_config=$dir_data/config
|
[[ -d $dir_data/config ]] && dir_config=$dir_data/config
|
||||||
|
|||||||
Reference in New Issue
Block a user