From dbd92b090ad9a7ce0b3428623667f308547eca88 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Sun, 9 Apr 2017 03:26:55 +0200 Subject: Update install --- scripts/install | 66 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 32 insertions(+), 34 deletions(-) (limited to 'scripts/install') diff --git a/scripts/install b/scripts/install index cfee5b2..174fc42 100644 --- a/scripts/install +++ b/scripts/install @@ -82,56 +82,49 @@ git clone https://github.com/tootsuite/mastodon.git $final_path/live sudo chown -R $app: "${final_path}" # Install de rbenv -# Install ruby-build -# Install Mastodon sudo su - $app <> ~/.bash_profile -echo 'export PATH="/opt/mastodon/.rbenv/bin:$PATH" -eval "$(/opt/mastodon/.rbenv/bin/rbenv init -)"' >> ~/.bashrc -type /opt/mastodon/.rbenv/bin/rbenv - -/opt/mastodon/.rbenv/bin/rbenv init +echo 'export PATH="/opt/mastodon/.rbenv/bin:/opt/mastodon/live/bin:$PATH"' >> ~/.bashrc +echo 'eval "\$(rbenv init -)"' >> ~/.bashrc +echo "alias su='env PATH=\$PATH'" >> ~/.bashrc +COMMANDS +# Install ruby-build +sudo su - $app <