diff --git a/scripts/remove b/scripts/remove index 6c47d00..e9a5110 100644 --- a/scripts/remove +++ b/scripts/remove @@ -14,57 +14,29 @@ source /usr/share/yunohost/helpers #================================================= # REMOVE SERVICE INTEGRATION IN YUNOHOST #================================================= -ynh_script_progression --message="Removing $app service integration..." --weight=1 +ynh_script_progression --message="Removing system configurations related to $app..." --weight=1 # Remove the service from the list of services known by YunoHost (added from `yunohost service add`) if ynh_exec_warn_less yunohost service status $app >/dev/null then + ynh_script_progression --message="Removing $app service integration..." --weight=1 yunohost service remove $app fi -#================================================= -# STOP AND REMOVE SERVICE -#================================================= -ynh_script_progression --message="Stopping and removing the systemd service..." --weight=1 - # Remove the dedicated systemd config ynh_remove_systemd_config -#================================================= -# REMOVE APP MAIN DIR -#================================================= -ynh_script_progression --message="Removing Coturn configuration file..." --weight=2 - ynh_secure_remove --file="/etc/turnserver.conf" -#================================================= -# REMOVE LOGROTATE CONFIGURATION -#================================================= -ynh_script_progression --message="Removing logrotate configuration..." --weight=1 - # Remove the app-specific logrotate config ynh_remove_logrotate -#================================================= -# REMOVE SCRIPT -#================================================= - -# Remove coturn/Coturn_config_rotate.sh -ynh_secure_remove --file="/home/yunohost.app/$app" - -#================================================= -# REMOVE CRON JOB -#================================================= - # Remove a cron file ynh_secure_remove --file=/etc/cron.d/$app # Remove the log files ynh_secure_remove --file=/var/log/$app -# Remove the sqlitedb file -#ynh_secure_remove --file=/var/lib/turn - #================================================= # GENERIC FINALIZATION #=================================================