Skip to content

Commit 530a339

Browse files
committed
自动更新代码
1 parent 49bc472 commit 530a339

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

keepalive.sh

+10
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,17 @@ checkResetCron() {
7878
fi
7979
}
8080

81+
autoUpdate() {
82+
if [ -d ${installpath}/serv00-play ]; then
83+
cd ${installpath}/serv00-play/
84+
git stash
85+
if git pull; then
86+
echo "更新完毕"
87+
fi
88+
fi
89+
}
8190
#main
91+
autoUpdate
8292
cd ${installpath}/serv00-play/
8393
if [ ! -f config.json ]; then
8494
echo "未配置保活项目,请先行配置!"

0 commit comments

Comments
 (0)