Browse Source

upgrade script support gitcode

master
filesite 4 months ago
parent
commit
69b7d405d5
  1. 6
      bin/upgrade.sh

6
bin/upgrade.sh

@ -58,6 +58,12 @@ if [ -f "master.tar.gz" ]; then
tar -zxvf master.tar.gz tar -zxvf master.tar.gz
rm -f master.tar.gz rm -f master.tar.gz
# 兼容gitcode的tar包解压后目录为:machete-master/
if [ -d machete-master/ ]; then
mv machete-master/ machete/
fi
rsync -vrL machete/* /var/www/machete/ \ rsync -vrL machete/* /var/www/machete/ \
--exclude=www/content/ \ --exclude=www/content/ \
--exclude=www/navs/ \ --exclude=www/navs/ \

Loading…
Cancel
Save