Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Commit

Permalink
🎨 improve upgrade script
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Oct 7, 2018
1 parent 9b626ac commit 7eda3d4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bin/tool
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ upgrade(){
mkdir upgrade_tmp
tar -zxvf $APP_NAME.tar.gz -C upgrade_tmp
sh tool stop
rm -rf lib tale-latest.jar tool resources/static resources/templates/admin resources/templates/*.html resources/*.properties
rm -rf lib tale-latest.jar tool resources/static resources/templates/admin resources/templates/comm resources/templates/*.html resources/*.properties

if [ "$REMOVE_LOCAL_THEME" -eq "1" ]; then
rm -rf resources/templates/themes
Expand All @@ -118,14 +118,13 @@ upgrade(){
mv upgrade_tmp/resources/static ./resources
mv upgrade_tmp/resources/*.properties ./resources
mv upgrade_tmp/resources/templates/admin ./resources/templates
mv upgrade_tmp/resources/templates/comm ./resources/templates
mv upgrade_tmp/resources/templates/*.html ./resources/templates

echo '升级完毕'
echo '升级完毕, 请执行 sh tool restart 重启博客系统!'

rm -rf upgrade_tmp
rm -rf tale.tar.gz

start
}

case "$1" in
Expand Down

0 comments on commit 7eda3d4

Please sign in to comment.