diff --git a/files/Install-Mastodon-Phase4.sh b/files/Install-Mastodon-Phase4.sh index 16fe564..421a66d 100644 --- a/files/Install-Mastodon-Phase4.sh +++ b/files/Install-Mastodon-Phase4.sh @@ -3,23 +3,24 @@ # 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 -rbenv install 2.5.0 || exit 302 -rbenv global 2.5.0 || exit 303 +cd .rbenv || exit 302 +rbenv install 2.5.0 || exit 303 +rbenv global 2.5.0 || exit 304 ruby -v cd ~ -git clone https://github.com/tootsuite/mastodon.git live || exit 304 -cd live || exit 305 -git checkout $(git tag | tail -n 1) || exit 306 +git clone https://github.com/tootsuite/mastodon.git live || exit 305 +cd live || exit 306 +git checkout $(git tag | tail -n 1) || exit 307 -echo "gem: --no-document" > ~/.gemrc || exit 307 -gem install bundler --no-ri || exit 308 +echo "gem: --no-document" > ~/.gemrc || exit 308 +gem install bundler --no-ri || exit 309 echo Launch the installation -bundle install --deployment --without development test || exit 309 -yarn install || exit 310 +bundle install --deployment --without development test || exit 310 +yarn install || exit 311 -cp .env.production.sample .env.production || exit 311 +cp .env.production.sample .env.production || exit 312 echo "# Service dependencies" >>.env.production echo REDIS_HOST=localhost >>.env.production @@ -41,7 +42,7 @@ echo "# Federation" >>.env.production echo LOCAL_DOMAIN=mastodon.lescorpsdereve.space >>.env.production echo LOCAL_HTTPS=false >>.env.production -RAILS_ENV=production bundle exec rails db:setup || exit 312 -RAILS_ENV=production bundle exec rails assets:precompile || exit 313 +RAILS_ENV=production bundle exec rails db:setup || exit 313 +RAILS_ENV=production bundle exec rails assets:precompile || exit 314 exit 0