Source code of filesite.io.
https://filesite.io
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
729 B
30 lines
729 B
#!/bin/sh |
|
echo "Upgrade machete ..." |
|
echo "" |
|
|
|
|
|
mkdir -p /var/www/downloads |
|
cd /var/www/downloads/ |
|
rm -f master.tar.gz |
|
rm -rf machete/ |
|
wget "https://git.filesite.io/filesite/machete/archive/master.tar.gz" |
|
tar -zxvf master.tar.gz |
|
rm -f master.tar.gz |
|
rsync -vruL machete/* /var/www/machete/ \ |
|
--exclude=www/content/ \ |
|
--exclude=www/navs/ \ |
|
--exclude=www/girls/ \ |
|
--exclude=www/videos/ \ |
|
--exclude=www/tajian/ \ |
|
--exclude=runtime/ |
|
|
|
# upgrade admin |
|
cd /var/www/downloads/ |
|
wget "https://git.filesite.io/wen/jialuomaadmin/archive/master.tar.gz" |
|
tar -zxvf master.tar.gz |
|
rm -f master.tar.gz |
|
rm -rf /var/www/machete/www/admin/ |
|
mv jialuomaadmin/dist/ /var/www/machete/www/admin |
|
|
|
echo "Machete upgrade done." |
|
echo ""
|
|
|