Improve matching

This commit is contained in:
thespad 2025-01-12 18:20:51 +00:00
parent 6479d8985f
commit 21e61b9308
No known key found for this signature in database
3 changed files with 3 additions and 4 deletions

View File

@ -23,7 +23,7 @@ param_ports:
# optional container parameters
opt_param_usage_include_env: true
opt_param_env_vars:
- {env_var: "AUTO_UPDATE", env_value: "true", desc: "Allow Jackett to update inside of the container (currently recommended by Jackett and enabled by default)"}
- {env_var: "AUTO_UPDATE", env_value: "true", desc: "Allow Jackett to update inside of the container."}
- {env_var: "RUN_OPTS", env_value: "", desc: "Optionally specify additional arguments to be passed."}
readonly_supported: true
readonly_message: |

View File

@ -3,9 +3,8 @@
mkdir -p /run/jackett-temp
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
if [[ "${AUTO_UPDATE}" == "true" ]]; then
if [[ "${AUTO_UPDATE,,}" == "true" ]]; then
lsiown -R abc:abc \
/app/Jackett
fi

View File

@ -1,7 +1,7 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
if [[ "${AUTO_UPDATE}" == "true" ]]; then
if [[ "${AUTO_UPDATE,,}" == "true" ]] && [[ -z ${LSIO_NON_ROOT_USER} ]]; then
COMMAND="/app/Jackett/jackett_launcher.sh"
else
COMMAND="/app/Jackett/jackett --NoUpdates"