From ba3ce5d001e05f6ad530b85ee24279c326705775 Mon Sep 17 00:00:00 2001 From: nemsia Date: Tue, 12 Jun 2018 15:33:34 +0200 Subject: Fix migrated stretch upgrade (#88) * upgrade-2.3.3 upgrade-2.3.3 git fetch with all tags forced * Upgrade 2.4.0 (#21) * Upgrade 2.4 (#79) * Upgrade rb to 2.5.1 * Update upgrade * Fix 2.3.3 * Add trace on assets:precompile * Yarn install and precompile Update 2.4 need root to yarn install and precompile, Temporary bad fix. * Update upgrade * Fix migrate * Update README.md * Update manifest.json * Upgrade yarn to 1.7.0 * Restart postgresql on upgrade * Ready to Debian Stretch (#22) * Ready to Debian Stretch * rb 2.5.1 on install * Yarn install on root * rails precompile fix * Fix backup on stretch * clean * fix backup stretch * Change systemd mastodon service restart * Change systemd script for stretch * Ready to mastodon 2.4.1 * Fix migrated stretch (#23) * Force bundle re-install * Add check debian on upgrade and clean check --- scripts/backup | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/backup') diff --git a/scripts/backup b/scripts/backup index b7ff222..8040747 100644 --- a/scripts/backup +++ b/scripts/backup @@ -32,8 +32,7 @@ ynh_backup "/etc/cron.d/${app}" "cron.conf" ynh_backup "/etc/systemd/system/mastodon-web.service" "systemd_web.service" ynh_backup "/etc/systemd/system/mastodon-sidekiq.service" "systemd_sidekiq.service" ynh_backup "/etc/systemd/system/mastodon-streaming.service" "systemd_streaming.service" -debian_version=$(lsb_release -c -s) -if [[ $debian_version = jessie ]]; then +if [ "$(lsb_release --codename --short)" == "jessie" ]; then ynh_backup "/etc/apt/sources.list.d/backports.list" "apt_backports.list" fi ynh_backup "/etc/apt/sources.list.d/yarn.list" "apt_yarn.list" -- cgit v1.2.3-70-g09d2