From 69b7d405d59f9e889df598f852393385f00b03bb Mon Sep 17 00:00:00 2001 From: filesite Date: Sat, 10 Aug 2024 09:28:53 +0800 Subject: [PATCH] upgrade script support gitcode --- bin/upgrade.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/upgrade.sh b/bin/upgrade.sh index 2608978..be126c5 100755 --- a/bin/upgrade.sh +++ b/bin/upgrade.sh @@ -58,6 +58,12 @@ if [ -f "master.tar.gz" ]; then tar -zxvf 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/ \ --exclude=www/content/ \ --exclude=www/navs/ \