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

This commit is contained in:
MathieuW 2023-08-13 13:42:12 +02:00 committed by GitHub
parent c92ce9e407
commit c6f0128084
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ function run__upload_button() {
local data_dir=$(ynh_app_setting_get --app=$app --key=data_dir)
local filename="$(echo "$upload_url" | awk -F/ '{print $NF}')"
ynh_print_info --message="Downloading file…"
wget --tries 3 --no-dns-cache --timeout 900 --output-document="$data_dir/$filename" "$upload_url" 2>>
wget --tries 3 --no-dns-cache --timeout 900 --output-document="$data_dir/$filename" "$upload_url" 2>&1
ynh_print_info --message="Adding file to Kiwix library"
$install_dir/kiwix-manage $data_dir/library.xml add "$data_dir/$filename"
yunohost service restart kiwix