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:
parent
1d93479766
commit
a32248a7ca
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue