1
0
Fork 0
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:
Kayou 2024-06-28 10:26:42 +02:00 committed by GitHub
parent 68d887fa7d
commit 54af11bd4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
#=================================================