1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kiwix_ynh.git synced 2024-09-03 19:35:56 +02:00

Update config: fix config panel for bookworm?

This commit is contained in:
Alexandre Aubin 2024-05-13 17:08:11 +02:00 committed by GitHub
parent 5d8bcea4a2
commit fee90cce34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,6 +2,12 @@
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
ynh_abort_if_errors ynh_abort_if_errors
function get__upload_url() {
# Gotta have this to prevent the infamous "Config panel question should be initialized with a value during install or upgrade."
# (at least on bookworm which is has tighter consistency etc)
echo ""
}
function run__upload_button() { function run__upload_button() {
local data_dir=$(ynh_app_setting_get --app=$app --key=data_dir) local data_dir=$(ynh_app_setting_get --app=$app --key=data_dir)
local filename="$(echo "$upload_url" | awk -F/ '{print $NF}')" local filename="$(echo "$upload_url" | awk -F/ '{print $NF}')"