diff options
| author | yalh76 <yalh@yahoo.com> | 2020-08-10 21:17:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-10 21:17:23 +0200 |
| commit | 76fb3457572c661b17032655ef594180fdb2ede6 (patch) | |
| tree | 5fbfd718e790dbe3ed4b1dc8273487bd7069520d /scripts/upgrade | |
| parent | 61a523591137c0d817ad07d2c604cd314caf0dad (diff) | |
| parent | 39fb4fe405e7d419f818ae31d7e05a3cbd64d0ba (diff) | |
| download | mastodon_ynh-76fb3457572c661b17032655ef594180fdb2ede6.tar.gz mastodon_ynh-76fb3457572c661b17032655ef594180fdb2ede6.tar.bz2 mastodon_ynh-76fb3457572c661b17032655ef594180fdb2ede6.zip | |
Merge pull request #233 from YunoHost-Apps/3.2.0
Upgrade to 3.2.0
Diffstat (limited to 'scripts/upgrade')
| -rw-r--r-- | scripts/upgrade | 12 |
1 files changed, 9 insertions, 3 deletions
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" + if [ "$(lsb_release --codename --short)" = "buster" ]; then + ynh_setup_source --dest_dir="$final_path/live" + else + ynh_script_progression --message="Setting up source files..." - # 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" + 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" |
