Merge pull request #704 from kay0u/patch-6

[FIX] Hook backup warning message
This commit is contained in:
Alexandre Aubin 2019-04-25 13:51:38 +02:00 committed by GitHub
commit ce465476f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,6 @@ source /usr/share/yunohost/helpers
backup_dir="${1}/conf/cron"
# Backup the configuration
for f in $(ls -1B /etc/cron.d/yunohost*); do
for f in $(ls -1B /etc/cron.d/yunohost* 2> /dev/null); do
ynh_backup "$f" "${backup_dir}/${f##*/}"
done