diff options
| author | magikcypress <cyp@rouquin.me> | 2017-04-29 16:00:41 +0200 |
|---|---|---|
| committer | magikcypress <cyp@rouquin.me> | 2017-04-29 16:00:54 +0200 |
| commit | 2cef464c6ba44226baf0a1f0f6a512145b3929ea (patch) | |
| tree | d566f4a581a1a7062e6f5283ffca74416da64a2d /scripts/install | |
| parent | cc04c85f305a7d901c058d3263c5cce604eb660d (diff) | |
| download | mastodon_ynh-2cef464c6ba44226baf0a1f0f6a512145b3929ea.tar.gz mastodon_ynh-2cef464c6ba44226baf0a1f0f6a512145b3929ea.tar.bz2 mastodon_ynh-2cef464c6ba44226baf0a1f0f6a512145b3929ea.zip | |
[fix] restore script
Diffstat (limited to 'scripts/install')
| -rw-r--r-- | scripts/install | 13 |
1 files changed, 4 insertions, 9 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 <<COMMANDS pushd ~/.rbenv |
