From f1b9a662988e20be97d719c45b49d2f81dc194bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Mon, 7 May 2018 13:14:59 +0200 Subject: [PATCH] Modification Phase 4 --- files/Install-Mastodon-Phase4.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/Install-Mastodon-Phase4.sh b/files/Install-Mastodon-Phase4.sh index 6ef6273..c313aef 100644 --- a/files/Install-Mastodon-Phase4.sh +++ b/files/Install-Mastodon-Phase4.sh @@ -1,8 +1,9 @@ #!/bin/bash - +set -x # Let's install ruby 2.5.0 echo Phase 4: Installation de Ruby -git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build || exit 301 +rm -rf ~/.rbenv 2>/dev/null;git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build || exit 301 +pwd cd ~/.rbenv || exit 302 cd ~/.rbenv && rbenv install 2.5.0 || exit 303 cd ~/.rbenv && rbenv global 2.5.0 || exit 304