1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/borgserver_ynh.git synced 2024-09-03 20:36:20 +02:00

[fix] Data home script typo

This commit is contained in:
ljf 2018-11-28 23:45:47 +01:00
parent 0d20a0538e
commit ba125fe301

View file

@ -7,13 +7,13 @@ set -eu
source /usr/share/yunohost/helpers.d/filesystem source /usr/share/yunohost/helpers.d/filesystem
# Backup destination # Backup destination
backup_dir="\${1}/data/home" backup_dir="${1}/data/home"
# Backup user home # Backup user home
for f in \$(find /home/* -type d -prune | awk -F/ '{print \$NF}'); do for f in $(find /home/* -type d -prune | awk -F/ '{print $NF}'); do
if [[ ! "\$f" =~ ^yunohost|lost\+found ]]; then if [[ ! "$f" =~ ^yunohost|lost\+found ]]; then
if [ ! -e "/home/\$f/.nobackup" ]; then if [ ! -e "/home/$f/.nobackup" ]; then
ynh_backup "/home/\$f" "${backup_dir}/\$f" 1 ynh_backup "/home/$f" "${backup_dir}/$f" 1
fi fi
fi fi
done done