From c0cf1c131c4ffd0500a3819d75b2d0054b731d97 Mon Sep 17 00:00:00 2001 From: nemsia Date: Thu, 20 Apr 2017 16:34:31 +0200 Subject: [PATCH 1/4] Make public on install --- scripts/install | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index cf4b720..2879646 100644 --- a/scripts/install +++ b/scripts/install @@ -192,8 +192,11 @@ sudo sed -i "s@__APP__@$app@g" /etc/cron.d/$app # Restart crontab sudo systemctl restart cron +# Set app public +ynh_app_setting_set "$app" unprotected_uris "/" + # Reload SSOwat configuration sudo yunohost app ssowatconf # Reload Nginx -sudo systemctl reload nginx \ No newline at end of file +sudo systemctl reload nginx From 12a64f8f9470ac2bc057c0bdd8eb67ac7be2ad78 Mon Sep 17 00:00:00 2001 From: __cyp Date: Thu, 20 Apr 2017 16:34:35 +0200 Subject: [PATCH 2/4] Add Unprotected url --- scripts/install | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 2879646..871e132 100644 --- a/scripts/install +++ b/scripts/install @@ -192,11 +192,14 @@ sudo sed -i "s@__APP__@$app@g" /etc/cron.d/$app # Restart crontab sudo systemctl restart cron -# Set app public +# Unprotected url ynh_app_setting_set "$app" unprotected_uris "/" # Reload SSOwat configuration sudo yunohost app ssowatconf +# Reload SSOwat configuration +sudo yunohost app ssowatconf + # Reload Nginx sudo systemctl reload nginx From f62443160afc62e0bce26264a86248fa7cbdb756 Mon Sep 17 00:00:00 2001 From: nemsia Date: Thu, 20 Apr 2017 16:35:44 +0200 Subject: [PATCH 3/4] Make public on upgrade --- scripts/upgrade | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 1dffb98..608974f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -51,5 +51,9 @@ COMMANDS # Reload Nginx sudo systemctl reload nginx + +# Set app public +ynh_app_setting_set "$app" unprotected_uris "/" + # Restart Mastodon -sudo systemctl start mastodon-*.service \ No newline at end of file +sudo systemctl start mastodon-*.service From 45e2837a44ce33ae145a18a4e47503e859b913b3 Mon Sep 17 00:00:00 2001 From: nemsia Date: Thu, 20 Apr 2017 16:39:35 +0200 Subject: [PATCH 4/4] Fix --- scripts/install | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/install b/scripts/install index 871e132..ed2b1e7 100644 --- a/scripts/install +++ b/scripts/install @@ -198,8 +198,5 @@ ynh_app_setting_set "$app" unprotected_uris "/" # Reload SSOwat configuration sudo yunohost app ssowatconf -# Reload SSOwat configuration -sudo yunohost app ssowatconf - # Reload Nginx sudo systemctl reload nginx