From 9599028041ac35cb0a7834fd1cb4cb47f4425544 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Thu, 13 Apr 2017 01:38:09 +0200 Subject: [PATCH] [fix] rbenv init + start service --- scripts/install | 49 ++++++++++++++----------------------------------- scripts/remove | 8 +++----- 2 files changed, 17 insertions(+), 40 deletions(-) diff --git a/scripts/install b/scripts/install index 6a1fe20..3258465 100644 --- a/scripts/install +++ b/scripts/install @@ -101,13 +101,12 @@ popd # sudo chown -R $app: "${final_path}" # Install de rbenv -# Tips: rbenv init - bash (see: https://github.com/rbenv/rbenv/issues/925) sudo su - $app <> ~/.profile echo 'export PATH="/opt/mastodon/.rbenv/bin:/opt/mastodon/live/bin:$PATH"' >> ~/.bashrc -echo 'eval "\$(rbenv init - bash)"' >> ~/.bashrc +echo 'eval "\$(rbenv init -)"' >> ~/.profile COMMANDS # Install ruby-build @@ -127,19 +126,6 @@ bin/bundle install --deployment --without development test yarn install --production MCOMMANDS -# Vérif Mastodon -sudo su - $app <