From 2d8b197984513e0a1c8a5f45b4102fb2d2d44551 Mon Sep 17 00:00:00 2001 From: anmol Date: Wed, 9 Jan 2019 17:12:23 +0530 Subject: [PATCH] Fix --- scripts/install | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index cd4588c..ce098a9 100644 --- a/scripts/install +++ b/scripts/install @@ -153,9 +153,10 @@ chown -R "$app": "$final_path" ( cd $final_path/.rbenv src/configure && make -C src - echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc - echo 'eval "$(rbenv init -)"' >> ~/.bashrc - exec bash + + echo "export PATH=\"$final_path/.rbenv/bin:$final_path/live/bin:\$PATH\" +eval \"\$(rbenv init -)\"" > $final_path/.profile + echo "export PATH=\"$final_path/.rbenv/bin:$final_path/live/bin:\$PATH\"" > $final_path/.bashrc ) # Install ruby-build @@ -206,10 +207,11 @@ chown -R "$app": "$final_path" cd "$final_path/live" su mastodon <> .env.production RAILS_ENV=production $final_path/live/bin/bundle exec rails db:migrate --quiet RAILS_ENV=production $final_path/live/bin/bundle exec rails assets:precompile --quiet INSTALL