From 30888806419a5838cf52ee4838ae232d1269943e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 4 Oct 2023 22:25:52 +0200 Subject: [PATCH] fix --- conf/config.xml | 17 +++++++++++++++++ manifest.toml | 4 ++-- scripts/install | 10 ++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 conf/config.xml diff --git a/conf/config.xml b/conf/config.xml new file mode 100644 index 0000000..bc40bfb --- /dev/null +++ b/conf/config.xml @@ -0,0 +1,17 @@ + + info + 127.0.0.1 + False + + __PORT__ + __PATH__ + __API_KEY__ + None + BuiltIn + develop + __PORT__ + False + + False + Radarr + diff --git a/manifest.toml b/manifest.toml index 85f2f64..24211d6 100644 --- a/manifest.toml +++ b/manifest.toml @@ -61,9 +61,9 @@ ram.runtime = "50M" [resources.permissions] main.url = "/" api.url = "/api" - api.show_tile = false api.allowed = "visitors" - api.auth_header = false + api.show_tile = false + api.protected = true [resources.ports] main.default = 8787 diff --git a/scripts/install b/scripts/install index 2cc10d3..afd05bb 100755 --- a/scripts/install +++ b/scripts/install @@ -47,6 +47,16 @@ yunohost service add $app --description="Book Manager and Automation" --log="/va #chmod 400 "$install_dir/some_config_file" #chown $app:$app "$install_dir/some_config_file" +#================================================= +# ADD A CONFIGURATION +#================================================= +ynh_script_progression --message="Configuring $app..." --weight=2 + +api_key=$(ynh_string_random --length=32) +ynh_app_setting_set --app=$app --key=api_key --value=$api_key + +ynh_add_config --template="../conf/config.xml" --destination="$data_dir/config.xml" + #================================================= # GENERIC FINALIZATION #=================================================