diff --git a/README.md b/README.md index 1742625..6fa8e38 100644 --- a/README.md +++ b/README.md @@ -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=` | 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. | diff --git a/readme-vars.yml b/readme-vars.yml index 18571a3..8c7c36c 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -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: "", 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 diff --git a/root/etc/cont-init.d/30-config b/root/etc/cont-init.d/30-config index 85221c3..03c2971 100644 --- a/root/etc/cont-init.d/30-config +++ b/root/etc/cont-init.d/30-config @@ -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 diff --git a/root/etc/services.d/jackett/run b/root/etc/services.d/jackett/run index 005732a..040e7ab 100644 --- a/root/etc/services.d/jackett/run +++ b/root/etc/services.d/jackett/run @@ -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"