Skip to content

Commit

Permalink
change default config
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhotio committed Mar 11, 2024
1 parent 4df5289 commit 17ad287
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions linux-amd64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ EXPOSE 6789
ARG IMAGE_STATS
ENV IMAGE_STATS=${IMAGE_STATS} WEBUI_PORTS="6789/tcp,6789/udp"

RUN apk add --no-cache python3 py3-lxml
RUN apk add --no-cache py3-lxml

# install app
ARG VERSION
RUN runfile="/tmp/app.run" && \
curl -fsSL -o "${runfile}" "https://github.com/nzbgetcom/nzbget/releases/download/v${VERSION}/nzbget-${VERSION}-bin-linux.run" && \
sh "${runfile}" --destdir "${APP_DIR}" && \
rm "${runfile}" && \
curl -fsSL "https://curl.se/ca/cacert.pem" | sed '/^DST Root CA X3$/,/^-----END CERTIFICATE-----$/d;' > "${APP_DIR}/cacert.pem" && \
rm -rf "${APP_DIR}/unrar" "${APP_DIR}/7za" && \
chmod -R u=rwX,go=rX "${APP_DIR}" && \
chown -R root:root "${APP_DIR}"

Expand Down
4 changes: 2 additions & 2 deletions linux-arm64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ EXPOSE 6789
ARG IMAGE_STATS
ENV IMAGE_STATS=${IMAGE_STATS} WEBUI_PORTS="6789/tcp,6789/udp"

RUN apk add --no-cache python3 py3-lxml
RUN apk add --no-cache py3-lxml

# install app
ARG VERSION
RUN runfile="/tmp/app.run" && \
curl -fsSL -o "${runfile}" "https://github.com/nzbgetcom/nzbget/releases/download/v${VERSION}/nzbget-${VERSION}-bin-linux.run" && \
sh "${runfile}" --destdir "${APP_DIR}" && \
rm "${runfile}" && \
curl -fsSL "https://curl.se/ca/cacert.pem" | sed '/^DST Root CA X3$/,/^-----END CERTIFICATE-----$/d;' > "${APP_DIR}/cacert.pem" && \
rm -rf "${APP_DIR}/unrar" "${APP_DIR}/7za" && \
chmod -R u=rwX,go=rX "${APP_DIR}" && \
chown -R root:root "${APP_DIR}"

Expand Down
2 changes: 2 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/init-setup-app/run
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ if [[ ! -f "${CONFIG_DIR}/nzbget.conf" ]]; then
-e "s#\\(LockFile=\\).*#\\1${CONFIG_DIR}/nzbget.lock#g" \
-e "s#\\(LogFile=\\).*#\\1${CONFIG_DIR}/nzbget.log#g" \
-e "s#\\(ShellOverride=\\).*#\\1.py=/usr/bin/python3#g" \
-e "s#\\(UnrarCmd=\\).*#\\1unrar#g" \
-e "s#\\(SevenZipCmd=\\).*#\\17z#g" \
"${APP_DIR}/nzbget.conf" > "${CONFIG_DIR}/nzbget.conf"
chown hotio:hotio "${CONFIG_DIR}/nzbget.conf"
fi

0 comments on commit 17ad287

Please sign in to comment.