mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-29 18:38:34 +08:00
12 lines
239 B
Bash
12 lines
239 B
Bash
#! /bin/bash
|
|
|
|
while [ true ]
|
|
do
|
|
cd $local_repo
|
|
git fetch origin $repo_branch
|
|
git reset --hard origin/$repo_branch
|
|
rm -rf /usr/share/nginx/html/*
|
|
cp -r $local_repo/$www_for_repo/* /usr/share/nginx/html
|
|
sleep 5m
|
|
done
|