diff --git a/scripts/.fonctions b/scripts/.fonctions index 064a0c9..58f67a2 100644 --- a/scripts/.fonctions +++ b/scripts/.fonctions @@ -253,4 +253,4 @@ ynh_secure_remove () { echo "$path_to_remove doesn't deleted because it's not exist." >&2 fi fi -} \ No newline at end of file +} diff --git a/scripts/install b/scripts/install index cf4b720..d0dd007 100644 --- a/scripts/install +++ b/scripts/install @@ -189,11 +189,12 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf # Install crontab sudo cp ../conf/crontab_mastodon /etc/cron.d/$app 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 diff --git a/scripts/remove b/scripts/remove index 6ddf97b..fc1cd54 100644 --- a/scripts/remove +++ b/scripts/remove @@ -19,6 +19,7 @@ if [ -e "/etc/systemd/system/mastodon-web.service" ]; then sudo systemctl stop mastodon-web.service ynh_secure_remove "/etc/systemd/system/mastodon-web.service" sudo systemctl disable mastodon-web.service + fi # Stop mastodon-sidekiq 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