aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2019-06-26 02:18:54 +0200
committeryalh76 <yalh@yahoo.com>2019-06-26 02:18:54 +0200
commitcbc9f6eabfe28aeba001bb7adb4fc491ba20cbed (patch)
treefed0888a5165ab455a1a7b21c9e6919138c48e96 /scripts
parentbcd3b889af03be3499450fc1842fb5b18a4382ed (diff)
downloadmastodon_ynh-cbc9f6eabfe28aeba001bb7adb4fc491ba20cbed.tar.gz
mastodon_ynh-cbc9f6eabfe28aeba001bb7adb4fc491ba20cbed.tar.bz2
mastodon_ynh-cbc9f6eabfe28aeba001bb7adb4fc491ba20cbed.zip
Fix public/system restoration
Diffstat (limited to 'scripts')
-rw-r--r--scripts/upgrade4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/upgrade b/scripts/upgrade
index 3dafd21..524a7fc 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -169,8 +169,8 @@ then
# Download Mastodon
mv "$final_path/live" "$final_path/live_back"
ynh_setup_source --dest_dir="$final_path/live"
- if [ -z $final_path/live_back/public/system ]; then
- rsync -a "$final_path/live_back/public/system" "$final_path/live_back/public/."
+ if [ -d "$final_path/live_back/public/system" ]; then
+ rsync -a "$final_path/live_back/public/system" "$final_path/live/public/."
fi
rsync -a "$final_path/live_back/.env.production" "$final_path/live/."
rm -Rf "$final_path/live_back"