|
|
|
@ -25,10 +25,19 @@ detectDomainCanConnect () {
@@ -25,10 +25,19 @@ detectDomainCanConnect () {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p /var/www/downloads |
|
|
|
|
if [ ! -d /var/www/downloads ]; then |
|
|
|
|
mkdir -p /var/www/downloads |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
cd /var/www/downloads/ |
|
|
|
|
rm -f master.tar.gz |
|
|
|
|
rm -rf machete/ |
|
|
|
|
|
|
|
|
|
if [ -f master.tar.gz ]; then |
|
|
|
|
rm -f master.tar.gz |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ -d machete/ ]; then |
|
|
|
|
rm -rf machete/ |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# 升级machete |
|
|
|
|
detect_domain="git.filesite.io" |
|
|
|
@ -47,7 +56,7 @@ if [ -f "master.tar.gz" ]; then
@@ -47,7 +56,7 @@ if [ -f "master.tar.gz" ]; then
|
|
|
|
|
|
|
|
|
|
tar -zxvf master.tar.gz |
|
|
|
|
rm -f master.tar.gz |
|
|
|
|
rsync -vruL machete/* /var/www/machete/ \ |
|
|
|
|
rsync -vrL machete/* /var/www/machete/ \ |
|
|
|
|
--exclude=www/content/ \ |
|
|
|
|
--exclude=www/navs/ \ |
|
|
|
|
--exclude=www/girls/ \ |
|
|
|
|