aboutsummaryrefslogtreecommitdiff
path: root/scripts/upgrade
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/upgrade
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/upgrade')
-rw-r--r--scripts/upgrade6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/upgrade b/scripts/upgrade
index 6035d48..937b5ea 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -83,7 +83,11 @@ sudo ln -s $final_path/.rbenv/versions/2.5.1/bin/ruby /usr/bin/ruby || true
sudo su - $app <<MCOMMANDS
pushd ~/live
$final_path/.rbenv/versions/2.5.1/bin/gem install bundler
-$final_path/.rbenv/versions/2.5.1/bin/bundle install --deployment --without development test
+if [ "$(lsb_release --codename --short)" == "jessie" ]; then
+ $final_path/.rbenv/versions/2.5.1/bin/bundle install --deployment --without development test
+else
+ $final_path/.rbenv/versions/2.5.1/bin/bundle install --deployment --force --without development test
+fi
MCOMMANDS
pushd $final_path/live