fix
This commit is contained in:
@@ -112,6 +112,9 @@ EOF
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "暂停更新配置,不要尝试删掉这个文件,你的容器可能会起不来"
|
||||||
|
echo '' >/scripts/logs/pull.lock
|
||||||
|
|
||||||
echo "定义定时任务合并处理用到的文件路径..."
|
echo "定义定时任务合并处理用到的文件路径..."
|
||||||
defaultListFile="/scripts/docker/$DEFAULT_LIST_FILE"
|
defaultListFile="/scripts/docker/$DEFAULT_LIST_FILE"
|
||||||
echo "默认文件定时任务文件路径为 ${defaultListFile}"
|
echo "默认文件定时任务文件路径为 ${defaultListFile}"
|
||||||
|
@@ -6,6 +6,9 @@ if [ -n "$1" ]; then
|
|||||||
run_cmd=$1
|
run_cmd=$1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f "/scripts/logs/pull.lock" ]; then
|
||||||
|
echo "存在更新锁定文件,跳过git pull操作..."
|
||||||
|
else
|
||||||
echo "设定远程仓库地址..."
|
echo "设定远程仓库地址..."
|
||||||
cd /scripts
|
cd /scripts
|
||||||
git remote set-url origin "$REPO_URL"
|
git remote set-url origin "$REPO_URL"
|
||||||
@@ -14,7 +17,7 @@ echo "git pull拉取最新代码..."
|
|||||||
git -C /scripts pull --rebase
|
git -C /scripts pull --rebase
|
||||||
echo "npm install 安装最新依赖"
|
echo "npm install 安装最新依赖"
|
||||||
npm install --prefix /scripts
|
npm install --prefix /scripts
|
||||||
|
fi
|
||||||
|
|
||||||
# 默认启动telegram交互机器人的条件
|
# 默认启动telegram交互机器人的条件
|
||||||
# 确认容器启动时调用的docker_entrypoint.sh
|
# 确认容器启动时调用的docker_entrypoint.sh
|
||||||
|
Reference in New Issue
Block a user