From 4ec52f841d1658129a35d20c20dd52745ced8ae9 Mon Sep 17 00:00:00 2001 From: nemsia Date: Fri, 26 May 2017 23:48:33 +0200 Subject: [PATCH] Merge remote-tracking branch 'refs/remotes/YunoHost-Apps/master' into nginx-conf # Conflicts: # scripts/restore --- scripts/restore | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/scripts/restore b/scripts/restore index 4ac7f93..7ea4d9e 100644 --- a/scripts/restore +++ b/scripts/restore @@ -117,21 +117,23 @@ 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" # Setup database -sudo su - $app <