diff --git a/scripts/remove b/scripts/remove index 1035d54..8845489 100755 --- a/scripts/remove +++ b/scripts/remove @@ -82,6 +82,16 @@ ynh_script_progression --message="Removing logrotate configuration..." --weight= # Remove the app-specific logrotate config ynh_remove_logrotate +#================================================= +# REMOVE THE CRON FILE +#================================================= +ynh_script_progression --message="Removing the cron file..." --weight=1 + +if [[ ! -f "/etc/cron.d/coturn_config_rotate" ]]; then + # If a cron job as been add by user, remove it + ynh_secure_remove --file="/etc/cron.d/coturn_config_rotate" +fi + #================================================= # CLOSE A PORT #=================================================