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