aboutsummaryrefslogtreecommitdiff
path: root/scripts/backup
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2018-06-07 17:15:08 +0200
committerGitHub <noreply@github.com>2018-06-07 17:15:08 +0200
commitc38df0dc27195a3ee4614e8f5f78ebde297b1bfb (patch)
treee1ba9ca80791626f98bd2655d4631707255e2bcb /scripts/backup
parent301df81c1e34e541e3dd6fcba5037d5744646747 (diff)
downloadmastodon_ynh-c38df0dc27195a3ee4614e8f5f78ebde297b1bfb.tar.gz
mastodon_ynh-c38df0dc27195a3ee4614e8f5f78ebde297b1bfb.tar.bz2
mastodon_ynh-c38df0dc27195a3ee4614e8f5f78ebde297b1bfb.zip
Fix migrated stretch (#23)
* Force bundle re-install * Add check debian on upgrade and clean check
Diffstat (limited to 'scripts/backup')
-rw-r--r--scripts/backup3
1 files changed, 1 insertions, 2 deletions
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"