Amélioration des phase 3 et 4

This commit is contained in:
2018-05-07 19:26:58 +02:00
parent c602b65543
commit cea26579d2
2 changed files with 14 additions and 9 deletions

View File

@@ -2,8 +2,12 @@
# https://anystack.xyz/how-to-install-mastodon-ubuntu/ # https://anystack.xyz/how-to-install-mastodon-ubuntu/
echo "Phase 3: Preparation de l\'environnement" echo "Phase 3: Preparation de l\'environnement"
git clone https://github.com/rbenv/rbenv.git ~/.rbenv || exit 101 cd $HOME
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc pwd
echo 'eval "$(rbenv init -)"' >> ~/.bashrc sleep 20
source ~/.bashrc
git clone https://github.com/rbenv/rbenv.git $HOME/.rbenv || exit 101
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> $HOME/.bashrc
echo 'eval "$(rbenv init -)"' >> $HOME/.bashrc
source $HOME/.bashrc
exit 0 exit 0

View File

@@ -2,14 +2,15 @@
set -x set -x
# Let's install ruby 2.5.0 # Let's install ruby 2.5.0
echo Phase 4: Installation de Ruby echo Phase 4: Installation de Ruby
rm -rf ~/.rbenv 2>/dev/null;git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build || exit 301 echo $HOME
rm -rf $HOME/.rbenv 2>/dev/null;git clone https://github.com/rbenv/ruby-build.git $HOME/.rbenv/plugins/ruby-build || exit 301
pwd pwd
cd ~/.rbenv || exit 302 cd $HOME/.rbenv || exit 302
cd ~/.rbenv && rbenv install 2.5.0 || exit 303 cd $HOME/.rbenv && rbenv install 2.5.0 || exit 303
cd ~/.rbenv && rbenv global 2.5.0 || exit 304 cd $HOME/.rbenv && rbenv global 2.5.0 || exit 304
ruby -v ruby -v
cd ~ cd
git clone https://github.com/tootsuite/mastodon.git live || exit 305 git clone https://github.com/tootsuite/mastodon.git live || exit 305
cd live || exit 306 cd live || exit 306
git checkout $(git tag | tail -n 1) || exit 307 git checkout $(git tag | tail -n 1) || exit 307