1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mastodon_ynh.git synced 2024-09-03 19:46:02 +02:00

update remove script

This commit is contained in:
nemsia 2017-04-12 11:45:20 +02:00
parent a29c1c23e0
commit e7c410cb40

View file

@ -17,24 +17,25 @@ domain=$(ynh_app_setting_get "$app" domain)
if [ -e "/etc/systemd/system/mastodon-web.service" ]; then if [ -e "/etc/systemd/system/mastodon-web.service" ]; then
echo "Delete systemd script" echo "Delete systemd script"
sudo systemctl stop mastodon-web.service sudo systemctl stop mastodon-web.service
sudo rm "/etc/systemd/system/mastodon-web.service"
sudo systemctl disable mastodon-web.service sudo systemctl disable mastodon-web.service
sudo rm "/etc/systemd/system/mastodon-web.service"
fi fi
# Stop mastodon-sidekiq # Stop mastodon-sidekiq
if [ -e "/etc/systemd/system/mastodon-sidekiq.service" ]; then if [ -e "/etc/systemd/system/mastodon-sidekiq.service" ]; then
echo "Delete systemd script" echo "Delete systemd script"
sudo systemctl stop mastodon-sidekiq.service sudo systemctl stop mastodon-sidekiq.service
sudo rm "/etc/systemd/system/mastodon-sidekiq.service"
sudo systemctl disable mastodon-sidekiq.service sudo systemctl disable mastodon-sidekiq.service
sudo rm "/etc/systemd/system/mastodon-sidekiq.service"
fi fi
# Stop mastodon-sidekiq # Stop mastodon-sidekiq
if [ -e "/etc/systemd/system/mastodon-streaming.service" ]; then if [ -e "/etc/systemd/system/mastodon-streaming.service" ]; then
echo "Delete systemd script" echo "Delete systemd script"
sudo systemctl stop mastodon-sidekiq.streaming sudo systemctl stop mastodon-sidekiq.streaming
sudo rm "/etc/systemd/system/mastodon-streaming.service"
sudo systemctl disable mastodon-streaming.service sudo systemctl disable mastodon-streaming.service
sudo rm "/etc/systemd/system/mastodon-streaming.service"
fi fi
# Delete service on Yunohost monitoring # Delete service on Yunohost monitoring