diff options
| author | yalh76 <yalh@yahoo.com> | 2020-02-23 18:44:50 +0100 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2020-02-23 18:44:50 +0100 |
| commit | 6ff11dacb201a08506b345953aa7b9bd39eeacf5 (patch) | |
| tree | ec12b2eca75ba3701644f50fd04d16a0c4f49528 /scripts/remove | |
| parent | ea70a2cd4f17daecf49e2b414c0e95e4385cf1a6 (diff) | |
| download | mastodon_ynh-6ff11dacb201a08506b345953aa7b9bd39eeacf5.tar.gz mastodon_ynh-6ff11dacb201a08506b345953aa7b9bd39eeacf5.tar.bz2 mastodon_ynh-6ff11dacb201a08506b345953aa7b9bd39eeacf5.zip | |
Apply example_ynh
Diffstat (limited to 'scripts/remove')
| -rw-r--r-- | scripts/remove | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/remove b/scripts/remove index 3db3310..b88da99 100644 --- a/scripts/remove +++ b/scripts/remove @@ -27,23 +27,24 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path) #================================================= # STANDARD REMOVE #================================================= -# REMOVE SERVICE FROM ADMIN PANEL +# REMOVE SERVICE INTEGRATION IN YUNOHOST #================================================= +ynh_script_progression --message="Removing service integration in YunoHost..." --weight=2 # Remove a service from the admin panel, added by `yunohost service add` -if yunohost service status "$app-web" >/dev/null 2>&1 +if ynh_exec_warn_less yunohost service status "$app-web" >/dev/null then ynh_script_progression --message="Removing $app-web service..." --weight=2 yunohost service remove "$app-web" fi -if yunohost service status "$app-sidekiq" >/dev/null 2>&1 +if ynh_exec_warn_less yunohost service status "$app-sidekiq" >/dev/null then ynh_script_progression --message="Removing $app-sidekiq service..." --weight=2 yunohost service remove "$app-sidekiq" fi -if yunohost service status "$app-streaming" >/dev/null 2>&1 +if ynh_exec_warn_less yunohost service status "$app-streaming" >/dev/null then ynh_script_progression --message="Removing $app-streaming service..." --weight=2 yunohost service remove "$app-streaming" @@ -99,6 +100,7 @@ ynh_remove_nginx_config #================================================= # REMOVE THE CRON FILE #================================================= +ynh_script_progression --message="Removing the cron file..." --weight=2 # Remove a cron file ynh_secure_remove --file="/etc/cron.d/$app" |
