diff --git a/Dockerfile b/Dockerfile index 5999ee0634..6d68b526b8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,8 @@ LABEL maintainer="thelamer" # environment settings ENV XDG_DATA_HOME="/config" \ -XDG_CONFIG_HOME="/config" + XDG_CONFIG_HOME="/config" \ + TMPDIR=/run/jackett-temp RUN \ echo "**** install packages ****" && \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index c5208e8e0b..190e3908d9 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -11,7 +11,8 @@ LABEL maintainer="thelamer" # environment settings ENV XDG_DATA_HOME="/config" \ -XDG_CONFIG_HOME="/config" + XDG_CONFIG_HOME="/config" \ + TMPDIR=/run/jackett-temp RUN \ echo "**** install packages ****" && \ diff --git a/readme-vars.yml b/readme-vars.yml index c1abfe727d..68a403ae52 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -27,6 +27,11 @@ 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: "RUN_OPTS", env_value: "", desc: "Optionally specify additional arguments to be passed."} + +readonly_supported: true +readonly_message: | + `AUTO_UPDATE` will not be available. + # application setup block app_setup_block_enabled: true app_setup_block: | diff --git a/root/etc/s6-overlay/s6-rc.d/init-jackett-config/run b/root/etc/s6-overlay/s6-rc.d/init-jackett-config/run index 51607f66d0..0084a6a4e6 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-jackett-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-jackett-config/run @@ -1,11 +1,14 @@ #!/usr/bin/with-contenv bash # shellcheck shell=bash -if [[ -z ${AUTO_UPDATE+x} ]] || [[ "${AUTO_UPDATE}" == "true" ]]; then +if [[ "${AUTO_UPDATE}" == "true" ]]; then lsiown -R abc:abc \ /app/Jackett fi +mkdir -p /run/jackett-temp + # permissions lsiown -R abc:abc \ - /config + /config \ + /run/jackett-temp diff --git a/root/etc/s6-overlay/s6-rc.d/svc-jackett/run b/root/etc/s6-overlay/s6-rc.d/svc-jackett/run index 5934be224f..f7fbc1e2b7 100755 --- a/root/etc/s6-overlay/s6-rc.d/svc-jackett/run +++ b/root/etc/s6-overlay/s6-rc.d/svc-jackett/run @@ -1,7 +1,7 @@ #!/usr/bin/with-contenv bash # shellcheck shell=bash -if [[ -z ${AUTO_UPDATE+x} ]] || [[ "${AUTO_UPDATE}" == "true" ]]; then +if [[ "${AUTO_UPDATE}" == "true" ]]; then COMMAND="/app/Jackett/jackett_launcher.sh" else COMMAND="/app/Jackett/jackett --NoUpdates"