mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[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:
parent
546edc2751
commit
66acd35c80
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue