diff --git a/Dockerfile b/Dockerfile index b9c9fe3..c5340e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 ****" && \ @@ -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 && \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 06be6a4..9a66715 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -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 ****" && \ @@ -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 \ diff --git a/readme-vars.yml b/readme-vars.yml index 025b192..5270fee 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -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: | diff --git a/root/etc/s6-overlay/s6-rc.d/init-duplicati-config/run b/root/etc/s6-overlay/s6-rc.d/init-duplicati-config/run index ae4017a..1fd087e 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-duplicati-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-duplicati-config/run @@ -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