typo and add default if unset to auto update

This commit is contained in:
thelamer 2020-05-24 11:56:14 -07:00 committed by Ryan Kuba
parent 769df825e8
commit c6925746ef
4 changed files with 4 additions and 4 deletions

View File

@ -120,7 +120,7 @@ Container images are configured using parameters passed at runtime (such as thos
| `-e PUID=1000` | for UserID - see below for explanation |
| `-e PGID=1000` | for GroupID - see below for explanation |
| `-e TZ=Europe/London` | Specify a timezone to use EG Europe/London. |
| `-e AUTO_UPDATE=true` | Allow Jackett to update inside of the container (currently recommended by Jacket) |
| `-e AUTO_UPDATE=true` | Allow Jackett to update inside of the container (currently recommended by Jackett and enabled by default) |
| `-e RUN_OPTS=<run options here>` | Optionally specify additional arguments to be passed. EG. `--ProxyConnection=10.0.0.100:1234`. |
| `-v /config` | Where Jackett should store its config file. |
| `-v /downloads` | Path to torrent blackhole. |

View File

@ -40,7 +40,7 @@ cap_add_param: false
# 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 Jacket)" }
- { 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: "RUN_OPTS", env_value: "<run options here>", desc: "Optionally specify additional arguments to be passed. EG. `--ProxyConnection=10.0.0.100:1234`." }
opt_param_usage_include_vols: false
opt_param_usage_include_ports: false

View File

@ -3,7 +3,7 @@
chown -R abc:abc \
/config
if [ "${AUTO_UPDATE}" == "true" ]; then
if [ -z ${AUTO_UPDATE+x} ] || [ "${AUTO_UPDATE}" == "true" ]; then
chown -R abc:abc \
/app/Jackett
fi

View File

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