mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update git.tpl
This commit is contained in:
@@ -7,13 +7,16 @@ git config --global credential.helper store
|
||||
git config --global pull.rebase false
|
||||
|
||||
|
||||
if [ ! -d {$ROOT_PATH}/gitcode ];then
|
||||
mkdir -p {$ROOT_PATH}/gitcode
|
||||
fi
|
||||
|
||||
if [ -d {$ROOT_PATH}/gitcode/{$REPO} ];then
|
||||
cd {$ROOT_PATH}/gitcode/{$REPO} && sudo git pull
|
||||
else
|
||||
git clone http://0.0.0.0:6660/xx/{$REPO}
|
||||
cd {$ROOT_PATH}/gitcode && git clone http://0.0.0.0:6660/xx/{$REPO}
|
||||
fi
|
||||
|
||||
|
||||
if [ ! -d {$ROOT_PATH}/wwwroot/{$REPO} ];then
|
||||
mkdir -p {$ROOT_PATH}/wwwroot/{$REPO}
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user