diff options
| author | __cyp <cyp@rouquin.me> | 2017-04-20 16:57:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-20 16:57:36 +0200 |
| commit | 5260ee2ecf37b6973220bf069528507018857ea2 (patch) | |
| tree | 33c341e046677275000b902350f6d23bcdd485e0 /scripts | |
| parent | 7c60ab9d4b0edc139aec323d6e94b44178034d00 (diff) | |
| parent | 45e2837a44ce33ae145a18a4e47503e859b913b3 (diff) | |
| download | mastodon_ynh-5260ee2ecf37b6973220bf069528507018857ea2.tar.gz mastodon_ynh-5260ee2ecf37b6973220bf069528507018857ea2.tar.bz2 mastodon_ynh-5260ee2ecf37b6973220bf069528507018857ea2.zip | |
Merge pull request #8 from nemsia/master
Make public on install and upgrade
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/install | 5 | ||||
| -rw-r--r-- | scripts/upgrade | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/scripts/install b/scripts/install index cf4b720..ed2b1e7 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 +# Unprotected url +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 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 |
