1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mastodon_ynh.git synced 2024-09-03 19:46:02 +02:00
This commit is contained in:
nemsia 2017-04-20 13:10:37 +00:00 committed by GitHub
commit dea809bfa4
4 changed files with 11 additions and 5 deletions

View file

@ -253,4 +253,4 @@ ynh_secure_remove () {
echo "$path_to_remove doesn't deleted because it's not exist." >&2
fi
fi
}
}

View file

@ -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
sudo systemctl reload nginx

View file

@ -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

View file

@ -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
sudo systemctl start mastodon-*.service