diff options
| author | magikcypress <cyp@rouquin.me> | 2017-04-09 03:26:55 +0200 |
|---|---|---|
| committer | magikcypress <cyp@rouquin.me> | 2017-04-09 03:26:55 +0200 |
| commit | dbd92b090ad9a7ce0b3428623667f308547eca88 (patch) | |
| tree | a30a22cb5fb40e3109121f53d50ad6cee2b5356b /scripts/remove | |
| parent | dab2e3571a3afc33795fa54fef57f10243522f90 (diff) | |
| download | mastodon_ynh-dbd92b090ad9a7ce0b3428623667f308547eca88.tar.gz mastodon_ynh-dbd92b090ad9a7ce0b3428623667f308547eca88.tar.bz2 mastodon_ynh-dbd92b090ad9a7ce0b3428623667f308547eca88.zip | |
Update install
Diffstat (limited to 'scripts/remove')
| -rw-r--r-- | scripts/remove | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/scripts/remove b/scripts/remove index d4e896f..b8f2d6b 100644 --- a/scripts/remove +++ b/scripts/remove @@ -13,6 +13,27 @@ app=$YNH_APP_INSTANCE_NAME # Retrieve app settings domain=$(ynh_app_setting_get "$app" domain) +# Delete service on Yunohost monitoring +if sudo yunohost service status | grep -q mastodon-web +then + echo "Remove mastodon-web service" + sudo yunohost service remove mastodon-web +fi + +# Delete service on Yunohost monitoring +if sudo yunohost service status | grep -q mastodon-sidekiq +then + echo "Remove mastodon-sidekiq service" + sudo yunohost service remove mastodon-sidekiq +fi + +# Delete service on Yunohost monitoring +if sudo yunohost service status | grep -q mastodon-streaming +then + echo "Remove mastodon-streaming service" + sudo yunohost service remove mastodon-streaming +fi + # Stop mastodon-web if [ -e "/etc/systemd/system/mastodon-web.service" ]; then echo "Delete systemd script" @@ -37,27 +58,6 @@ if [ -e "/etc/systemd/system/mastodon-streaming.service" ]; then sudo systemctl disable mastodon-streaming.service fi -# Delete service on Yunohost monitoring -if sudo yunohost service status | grep -q mastodon-web -then - echo "Remove mastodon-web service" - sudo yunohost service remove mastodon-web -fi - -# Delete service on Yunohost monitoring -if sudo yunohost service status | grep -q mastodon-sidekiq -then - echo "Remove mastodon-sidekiq service" - sudo yunohost service remove mastodon-sidekiq -fi - -# Delete service on Yunohost monitoring -if sudo yunohost service status | grep -q mastodon-streaming -then - echo "Remove mastodon-streaming service" - sudo yunohost service remove mastodon-streaming -fi - # delete postgresql database & user ynh_psql_drop_db $app ynh_psql_drop_user $app |
