From 4346f2a5feb4607c1d67c8b8a91e2f97b77488fe Mon Sep 17 00:00:00 2001 From: ariasuni Date: Sun, 31 Dec 2017 21:11:51 +0100 Subject: [PATCH] =?UTF-8?q?[fix]=20don=E2=80=99t=20remove=20cron=20job=20o?= =?UTF-8?q?n=20upgrade=20if=20not/no=20more=20present?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/upgrade | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 13a97b8..ce770ce 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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