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:
parent
7e22b29224
commit
4346f2a5fe
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue