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:
parent
0d20a0538e
commit
ba125fe301
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue