mirror of
https://github.com/YunoHost-Apps/borg_ynh.git
synced 2024-09-03 18:16:05 +02:00
fix config panel
This commit is contained in:
parent
68d887fa7d
commit
54af11bd4a
1 changed files with 13 additions and 0 deletions
|
@ -53,6 +53,10 @@ $(BORG_PASSPHRASE="$(ynh_app_setting_get $app passphrase)" BORG_RSH="ssh -i /roo
|
|||
EOF
|
||||
}
|
||||
|
||||
get__conf() {
|
||||
ynh_app_setting_get --app=$app --key=conf
|
||||
}
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC VALIDATORS FOR TOML SHORT KEYS
|
||||
#=================================================
|
||||
|
@ -74,6 +78,15 @@ set__data_multimedia() {
|
|||
ynh_secure_remove /home/yunohost.multimedia/.nobackup
|
||||
fi
|
||||
}
|
||||
|
||||
set__conf() {
|
||||
if [ -n "${conf}" ]
|
||||
then
|
||||
# Update the config of the app
|
||||
ynh_app_setting_set --app=$app --key=conf --value=$conf
|
||||
fi
|
||||
}
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue