diff --git a/README.md b/README.md index b64a628..7cc4c08 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ Tiny-Tiny RSS package for YunoHost ====================== -http://tt-rss.org/redmine/projects/tt-rss/wiki +https://git.tt-rss.org/git/tt-rss/wiki diff --git a/scripts/remove b/scripts/remove index a09e254..225440d 100644 --- a/scripts/remove +++ b/scripts/remove @@ -64,6 +64,17 @@ ynh_remove_fpm_config ynh_remove_systemd_config +#================================================= +# REMOVE SERVICE FROM ADMIN PANEL +#================================================= + +# Remove a service from the admin panel, added by `yunohost service add` +if yunohost service status | grep -q $app +then + echo "Remove $app service" + yunohost service remove $app +fi + #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 72b3a69..fa8304a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -34,9 +34,6 @@ if [ -z $db_name ]; then # If db_name doesn't exist, create it ynh_app_setting_set $app db_name $db_name fi -# Remove old cron job -ynh_secure_remove "/etc/cron.d/$app" - #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #================================================= @@ -47,6 +44,13 @@ ynh_clean_setup () { } ynh_abort_if_errors # Active trap pour arrêter le script si une erreur est détectée. +#================================================= +# ENSURE DOWNWARD COMPATIBILITY BIS +#================================================= + +# Remove old cron job +ynh_secure_remove "/etc/cron.d/$app" + #================================================= # CHECK THE PATH #=================================================