Skip to content

Commit

Permalink
Merge pull request #78 from linuxserver/dev-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 b6805a7 + 4537c24 commit e605570
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ LABEL maintainer="aptalca"

# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
ENV HOME="/config"
ENV HOME="/config" \
TMPDIR=/run/duplicati-temp

RUN \
echo "**** install packages ****" && \
Expand All @@ -26,7 +27,7 @@ RUN \
fi && \
duplicati_url=$(curl -s https://api.github.com/repos/duplicati/duplicati/releases/tags/"${DUPLICATI_RELEASE}" |jq -r '.assets[].browser_download_url' |grep 'linux-x64-gui.zip$') || \
duplicati_url="https://updates.duplicati.com/canary/duplicati-${DUPLICATI_RELEASE}-linux-x64-gui.zip" && \
curl -fo \
curl -fso \
/tmp/duplicati.zip -L \
"${duplicati_url}" && \
unzip -q /tmp/duplicati.zip -d /app && \
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ LABEL maintainer="aptalca"

# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
ENV HOME="/config"
ENV HOME="/config" \
TMPDIR=/run/duplicati-temp

RUN \
echo "**** install packages ****" && \
Expand All @@ -24,7 +25,7 @@ RUN \
DUPLICATI_RELEASE=$(curl -sX GET "https://api.github.com/repos/duplicati/duplicati/releases" \
| jq -r 'first(.[] | select(.tag_name | contains("canary"))) | .tag_name'); \
fi && \
duplicati_url=$(curl -s https://api.github.com/repos/duplicati/duplicati/releases/tags/"${DUPLICATI_RELEASE}" |jq -r '.assets[].browser_download_url' |grep 'linux-arm64-gui.zip$') || \
duplicati_url=$(curl -s https://api.github.com/repos/duplicati/duplicati/releases/tags/"${DUPLICATI_RELEASE}" |jq -r '.assets[].browser_download_url' |grep 'linux-arm64-gui.zip$') || \
duplicati_url="https://updates.duplicati.com/canary/duplicati-${DUPLICATI_RELEASE}-linux-arm64-gui.zip" && \
curl -fso \
/tmp/duplicati.zip -L \
Expand Down
2 changes: 2 additions & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ opt_param_usage_include_env: true
opt_param_env_vars:
- { env_var: "CLI_ARGS", env_value: "", desc: "Optionally specify any [CLI variables](https://duplicati.readthedocs.io/en/latest/07-other-command-line-utilities/) you want to launch the app with" }

readonly_supported: true

# application setup block
app_setup_block_enabled: true
app_setup_block: |
Expand Down
5 changes: 4 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-duplicati-config/run
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

mkdir -p /run/duplicati-temp

# permissions
lsiown -R abc:abc \
/config
/config \
/run/duplicati-temp

0 comments on commit e605570

Please sign in to comment.