mirror of
https://gitee.com/kennylee/docker.git
synced 2024-12-02 03:48:15 +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
|