From e05277a8fe369ba4cfdd66e93b2b93d6c1377201 Mon Sep 17 00:00:00 2001 From: nemsia Date: Mon, 24 Apr 2017 23:54:57 +0200 Subject: [fix] Stop streaming on remove --- scripts/remove | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index 6ddf97b..373d028 100644 --- a/scripts/remove +++ b/scripts/remove @@ -32,7 +32,7 @@ fi # Stop mastodon-sidekiq if [ -e "/etc/systemd/system/mastodon-streaming.service" ]; then echo "Delete systemd script" - sudo systemctl stop mastodon-sidekiq.streaming + sudo systemctl stop mastodon-streaming.service ynh_secure_remove "/etc/systemd/system/mastodon-streaming.service" sudo systemctl disable mastodon-streaming.service fi -- cgit v1.2.3-70-g09d2 From 2cef464c6ba44226baf0a1f0f6a512145b3929ea Mon Sep 17 00:00:00 2001 From: magikcypress Date: Sat, 29 Apr 2017 16:00:41 +0200 Subject: [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 <