mirror of
https://github.com/linuxserver/docker-jackett.git
synced 2026-01-09 06:42:04 +08:00
Improve matching
This commit is contained in:
parent
6479d8985f
commit
21e61b9308
@ -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: |
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user