Skip to content

Commit

Permalink
Merge pull request #151 from linuxserver/ro-tweaks
Browse files Browse the repository at this point in the history
Move tmpdir
  • Loading branch information
Roxedus authored Jul 8, 2024
2 parents e7d1eb1 + 9cf10de commit cb62e9f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ****" && \
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -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 ****" && \
Expand Down
5 changes: 5 additions & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
7 changes: 5 additions & 2 deletions root/etc/s6-overlay/s6-rc.d/init-jackett-config/run
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion root/etc/s6-overlay/s6-rc.d/svc-jackett/run
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit cb62e9f

Please sign in to comment.