From dbd92b090ad9a7ce0b3428623667f308547eca88 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Sun, 9 Apr 2017 03:26:55 +0200 Subject: [PATCH] Update install --- README.md | 3 ++- scripts/install | 66 ++++++++++++++++++++++++------------------------- scripts/remove | 42 +++++++++++++++---------------- 3 files changed, 55 insertions(+), 56 deletions(-) diff --git a/README.md b/README.md index d01620f..4fe4817 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Mastodon for YunoHost -:warning: Testing version (don't work) :warning: +[![Status](https://img.shields.io/badge/status-in_progress-yellow.svg?style=flat)](https://github.com/Snipees/couchpotato_ynh/milestones) +[![Yunohost version](https://img.shields.io/badge/yunohost-2.4.2_tested-orange.svg?style=flat)](https://github.com/YunoHost/yunohost) ## Mastodon c'est quoi ? 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 <