From aa87c94ae0b5134a90fb17e90b9d7c3296abfe47 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 9 Aug 2020 00:06:17 +0200 Subject: Upgrade to 3.2.0 --- scripts/upgrade | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'scripts/upgrade') diff --git a/scripts/upgrade b/scripts/upgrade index 6ed16ef..f10087a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -183,10 +183,16 @@ then fi rsync -a "$config" "$tmpdir/." ynh_secure_remove --file="$final_path/live" - ynh_setup_source --dest_dir="$final_path/live" - - # Temporary workaround for https://github.com/tootsuite/mastodon/issues/13292 - ynh_replace_string --match_string="sidekiq-unique-jobs (6.0.18)" --replace_string="sidekiq-unique-jobs (6.0.20)" --target_file="$final_path/live/Gemfile.lock" + if [ "$(lsb_release --codename --short)" = "buster" ]; then + ynh_setup_source --dest_dir="$final_path/live" + else + ynh_script_progression --message="Setting up source files..." + + ynh_setup_source --dest_dir="$final_path/live" --source_id=jessie + + # Temporary workaround for https://github.com/tootsuite/mastodon/issues/13292 + ynh_replace_string --match_string="sidekiq-unique-jobs (6.0.18)" --replace_string="sidekiq-unique-jobs (6.0.20)" --target_file="$final_path/live/Gemfile.lock" + fi if [ -d "$final_path/system.tmp" ]; then mv --verbose --no-target-directory "$final_path/system.tmp" "$final_path/live/public/system" -- cgit v1.2.3-70-g09d2