From 8d7554947196a67cb297a807d84aeba8f7dc0946 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Mon, 10 Apr 2017 21:13:13 +0200 Subject: [fix] Add release mastodon 1.1.1 --- scripts/install | 39 +++++++++++++++++++++++++++++---------- 1 file changed, 29 insertions(+), 10 deletions(-) (limited to 'scripts/install') diff --git a/scripts/install b/scripts/install index 41d430e..11c3f1a 100644 --- a/scripts/install +++ b/scripts/install @@ -61,23 +61,32 @@ ynh_app_setting_set $app final_path $final_path # Install de Node.js pushd /opt -curl -sL https://deb.nodesource.com/setup_4.x | bash - +curl -sL https://deb.nodesource.com/setup_4.x | sudo bash - sudo apt-get -y install nodejs npm install -g yarn # Create DB without password +sudo systemctl restart postgresql ynh_psql_create_db_without_password "$app" # Download all Ruby source sudo git clone https://github.com/rbenv/rbenv.git $final_path/.rbenv -git clone https://github.com/rbenv/ruby-build.git $final_path/.rbenv/plugins/ruby-build -git clone https://github.com/tootsuite/mastodon.git $final_path/live +sudo git clone https://github.com/rbenv/ruby-build.git $final_path/.rbenv/plugins/ruby-build + +# Be king rewind (/var/cache/yunohost/from_file/scripts) +popd + +# Get Mastodon last version +sudo mkdir "${final_path}/live" +SETUP_SOURCE sudo chown -R $app: "${final_path}" # Install de rbenv sudo su - $app <> ~/.bashrc +echo 'export PATH="/opt/mastodon/.rbenv/bin:/opt/mastodon/live/bin:$PATH"' >> ~/.profile echo 'export PATH="/opt/mastodon/.rbenv/bin:/opt/mastodon/live/bin:$PATH"' >> ~/.bashrc echo 'eval "\$(rbenv init -)"' >> ~/.bashrc COMMANDS @@ -91,7 +100,7 @@ RCOMMANDS # Create symlink for ruby sudo ln -s /opt/mastodon/.rbenv/versions/2.3.1/bin/ruby /usr/bin/ruby || true -# # Install Mastodon +# Install Mastodon sudo su - $app < Date: Mon, 10 Apr 2017 21:18:41 +0200 Subject: [fix] Config assets:precompile --- scripts/install | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/install') diff --git a/scripts/install b/scripts/install index 11c3f1a..012d558 100644 --- a/scripts/install +++ b/scripts/install @@ -85,7 +85,6 @@ sudo chown -R $app: "${final_path}" sudo su - $app <> ~/.bashrc echo 'export PATH="/opt/mastodon/.rbenv/bin:/opt/mastodon/live/bin:$PATH"' >> ~/.profile echo 'export PATH="/opt/mastodon/.rbenv/bin:/opt/mastodon/live/bin:$PATH"' >> ~/.bashrc echo 'eval "\$(rbenv init -)"' >> ~/.bashrc @@ -137,7 +136,7 @@ sudo sed -i 's,SMTP_FROM_ADDRESS=notifications@example.com,SMTP_FROM_ADDRESS='${ sudo su - $app <