aboutsummaryrefslogtreecommitdiff
path: root/scripts/upgrade
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2018-06-08 10:29:44 +0200
committernemsia <nemsia@nemsia.org>2018-06-08 10:29:44 +0200
commitdcf41efbe5a45d32054f55e281735628d311eecc (patch)
treeac3150cbf07e3862699da41f3e66e79c6ce62ff3 /scripts/upgrade
parent2070a3fad9f18ac6f9ee507659c0fb434f66b2e2 (diff)
downloadmastodon_ynh-dcf41efbe5a45d32054f55e281735628d311eecc.tar.gz
mastodon_ynh-dcf41efbe5a45d32054f55e281735628d311eecc.tar.bz2
mastodon_ynh-dcf41efbe5a45d32054f55e281735628d311eecc.zip
Ready to Yunohost 3 and Debian Stretch
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 3d5dcd3..c151b57 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -130,7 +130,11 @@ 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
yarn install --pure-lockfile
MCOMMANDS
)