[fix] Restore warning in backup

The warning for a non existing file during the backup disappear during a [conflict resolve](72159f702f)...
I restore it as a micro decision.
This commit is contained in:
Maniack Crudelis 2019-01-22 13:19:34 +01:00 committed by GitHub
parent 546edc2751
commit 66acd35c80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,6 +64,8 @@ ynh_backup() {
[[ -e "${SRC_PATH}" ]] || { [[ -e "${SRC_PATH}" ]] || {
if [ "$NOT_MANDATORY" == "0" ] if [ "$NOT_MANDATORY" == "0" ]
then then
echo "Source path '${SRC_PATH}' does not exist" >&2
# This is a temporary fix for fail2ban config files missing after the migration to stretch. # This is a temporary fix for fail2ban config files missing after the migration to stretch.
if echo "${SRC_PATH}" | grep --quiet "/etc/fail2ban" if echo "${SRC_PATH}" | grep --quiet "/etc/fail2ban"
then then