From ec04eac028ca8e671e29e41bbb9efecfbb5928a3 Mon Sep 17 00:00:00 2001 From: nemsia Date: Fri, 26 May 2017 13:37:37 +0200 Subject: [PATCH] [enh] add install rben on restore --- scripts/restore | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/restore b/scripts/restore index ac6f521..066fa2b 100644 --- a/scripts/restore +++ b/scripts/restore @@ -117,6 +117,15 @@ sudo su -c "psql" postgres <<< \ sudo su -c "psql" postgres <<< \ "update pg_database set datistemplate='true' where datname='template1';" +# Install rbenv +sudo su - $app <> ~/.profile +echo 'export PATH="/opt/mastodon/.rbenv/bin:/opt/mastodon/live/bin:$PATH"' >> ~/.bashrc +echo 'eval "\$(rbenv init -)"' >> ~/.profile +COMMANDS + # Create user for db postgresql ynh_psql_create_db_without_password "$app"