From 2cef464c6ba44226baf0a1f0f6a512145b3929ea Mon Sep 17 00:00:00 2001 From: magikcypress Date: Sat, 29 Apr 2017 16:00:41 +0200 Subject: [PATCH] [fix] restore script --- scripts/install | 13 ++++--------- scripts/restore | 40 +++++++++++++++++++++++++--------------- scripts/upgrade | 2 +- 3 files changed, 30 insertions(+), 25 deletions(-) diff --git a/scripts/install b/scripts/install index ed2b1e7..5d1e75e 100644 --- a/scripts/install +++ b/scripts/install @@ -70,13 +70,13 @@ ynh_package_install yarn # Set UTF8 encoding by default sudo su -c "psql" postgres <<< \ - "update pg_database set datistemplate='false' where datname='template1';" + "update pg_database set datistemplate='false' where datname='template1';" sudo su -c "psql" postgres <<< \ - "drop database template1;" + "drop database template1;" sudo su -c "psql" postgres <<< \ - "create database template1 encoding='UTF8' template template0;" + "create database template1 encoding='UTF8' template template0;" sudo su -c "psql" postgres <<< \ - "update pg_database set datistemplate='true' where datname='template1';" + "update pg_database set datistemplate='true' where datname='template1';" # Create DB without password ynh_psql_create_db_without_password "$app" @@ -92,11 +92,6 @@ CLONECOMMANDS # 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 <