1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/borg_ynh.git synced 2024-09-03 18:16:05 +02:00

Fix app backup following disappearance of option -b

This commit is contained in:
Alexandre Aubin 2020-06-05 12:50:05 +02:00 committed by GitHub
parent e427a407f1
commit 29d58f6015
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ fi
# Backup all apps independently # Backup all apps independently
apps=$(yunohost app setting {{ app }} apps) apps=$(yunohost app setting {{ app }} apps)
for app in $(yunohost app list --installed -b | grep id: | cut -d: -f2); do for app in $(ls /etc/yunohost/apps/*/scripts/backup | cut -d / -f 5); do
backup_app=false backup_app=false
for selected_app in $(echo $apps | tr "," " ");do for selected_app in $(echo $apps | tr "," " ");do
if [[ "$selected_app" == "$app" ]] || [ "$apps" = "all" ]; then if [[ "$selected_app" == "$app" ]] || [ "$apps" = "all" ]; then