1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ttrss_ynh.git synced 2024-10-01 13:34:46 +02:00

[fix] don’t remove cron job on upgrade if not/no more present

This commit is contained in:
ariasuni 2017-12-31 21:11:51 +01:00
parent 7e22b29224
commit 4346f2a5fe

View file

@ -6,7 +6,6 @@
# IMPORT GENERIC HELPERS
#=================================================
# source _common.sh
source /usr/share/yunohost/helpers
#=================================================
@ -49,7 +48,9 @@ ynh_abort_if_errors # Active trap pour arrêter le script si une erreur est dét
#=================================================
# Remove old cron job
ynh_secure_remove "/etc/cron.d/$app"
if [ -e "/etc/cron.d/$app" ]; then
ynh_secure_remove "/etc/cron.d/$app"
fi
#=================================================
# CHECK THE PATH