mirror of
https://github.com/YunoHost-Apps/borg_ynh.git
synced 2024-09-03 18:16:05 +02:00
[fix] all option broken
This commit is contained in:
parent
9ad5679799
commit
a68702d2ef
1 changed files with 9 additions and 5 deletions
|
@ -31,12 +31,16 @@ fi
|
||||||
apps=$(yunohost app setting {{ app }} apps)
|
apps=$(yunohost app setting {{ app }} apps)
|
||||||
for app in $(ls /etc/yunohost/apps/*/scripts/backup | cut -d / -f 5); do
|
for app in $(ls /etc/yunohost/apps/*/scripts/backup | cut -d / -f 5); do
|
||||||
backup_app=false
|
backup_app=false
|
||||||
|
if [[ "$apps" = "all" ]]; then
|
||||||
|
backup_app=true
|
||||||
|
else
|
||||||
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" ]]; then
|
||||||
backup_app=true
|
backup_app=true
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
if [ "$backup_app" == "true" ];then
|
if [ "$backup_app" == "true" ];then
|
||||||
yunohost backup create $ignore_system -n auto_$app --method {{ app }}_app --apps $app
|
yunohost backup create $ignore_system -n auto_$app --method {{ app }}_app --apps $app
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue