1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/glitchsoc_ynh.git synced 2024-09-03 19:15:59 +02:00

Merge pull request #163 from YunoHost-Apps/fix_upgrade

Fix upgrade
This commit is contained in:
yalh76 2019-06-28 00:51:34 +02:00 committed by GitHub
commit e0d8fa20c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,11 +169,11 @@ 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"
ynh_secure_remove --file="$final_path/live_back/"
# Clean files which are not needed anymore
ynh_secure_remove --file="$final_path/live/config/initializers/timeout.rb"