1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/galene_ynh.git synced 2024-09-03 18:36:31 +02:00

Check if a cron job is present and remove it

This commit is contained in:
ericgaspar 2021-05-12 19:25:57 +02:00
parent 1d93479766
commit a32248a7ca
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -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
#=================================================