mirror of
https://github.com/YunoHost-Apps/borg_ynh.git
synced 2024-09-03 18:16:05 +02:00
Fix system conf/data backup setting check (fix #21)
This commit is contained in:
parent
d67b224d3b
commit
d2ce705a7e
1 changed files with 2 additions and 2 deletions
|
@ -15,14 +15,14 @@ filter_hooks() {
|
|||
|
||||
# Backup system part conf
|
||||
conf=$(yunohost app setting {{ app }} conf)
|
||||
if [ "$conf" = "true" ]
|
||||
if [ $conf -eq 1 ]
|
||||
then
|
||||
yunohost backup create $ignore_apps -n auto_conf --method {{ app }}_app --system $(filter_hooks conf)
|
||||
fi
|
||||
|
||||
# Backup system data
|
||||
data=$(yunohost app setting {{ app }} data)
|
||||
if [ "$data" = "true" ]
|
||||
if [ $data -eq 1 ]
|
||||
then
|
||||
yunohost backup create $ignore_apps -n auto_data --method {{ app }}_app --system $(filter_hooks data)
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue