From ba125fe301aa542127d416448a5915fa09042f5d Mon Sep 17 00:00:00 2001 From: ljf Date: Wed, 28 Nov 2018 23:45:47 +0100 Subject: [PATCH] [fix] Data home script typo --- conf/17-data_home | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/conf/17-data_home b/conf/17-data_home index 760fb3b..99f0161 100644 --- a/conf/17-data_home +++ b/conf/17-data_home @@ -7,13 +7,13 @@ set -eu source /usr/share/yunohost/helpers.d/filesystem # Backup destination -backup_dir="\${1}/data/home" +backup_dir="${1}/data/home" # Backup user home -for f in \$(find /home/* -type d -prune | awk -F/ '{print \$NF}'); do - if [[ ! "\$f" =~ ^yunohost|lost\+found ]]; then - if [ ! -e "/home/\$f/.nobackup" ]; then - ynh_backup "/home/\$f" "${backup_dir}/\$f" 1 +for f in $(find /home/* -type d -prune | awk -F/ '{print $NF}'); do + if [[ ! "$f" =~ ^yunohost|lost\+found ]]; then + if [ ! -e "/home/$f/.nobackup" ]; then + ynh_backup "/home/$f" "${backup_dir}/$f" 1 fi fi done