File tree Expand file tree Collapse file tree 5 files changed +14
-21
lines changed
root/etc/s6-overlay/s6-rc.d/init-nzbget-config Expand file tree Collapse file tree 5 files changed +14
-21
lines changed Original file line number Diff line number Diff line change @@ -37,16 +37,16 @@ RUN \
3737 rm -rf /app/nzbget/bin/ && \
3838 rm -rf /app/nzbget/etc/ && \
3939 sed -i \
40- -e "s|^MainDir=.*|MainDir=/downloads |g" \
40+ -e "s|^MainDir=.*|MainDir=/config |g" \
4141 -e "s|^ScriptDir=.*|ScriptDir=$\{ MainDir\} /scripts|g" \
4242 -e "s|^WebDir=.*|WebDir=$\{ AppDir\} /webui|g" \
4343 -e "s|^ConfigTemplate=.*|ConfigTemplate=$\{ AppDir\} /webui/nzbget.conf.template|g" \
4444 -e "s|^UnrarCmd=.*|UnrarCmd=unrar|g" \
4545 -e "s|^SevenZipCmd=.*|SevenZipCmd=7z|g" \
4646 -e "s|^CertStore=.*|CertStore=$\{ AppDir\} /cacert.pem|g" \
4747 -e "s|^CertCheck=.*|CertCheck=yes|g" \
48- -e "s|^DestDir=.*|DestDir=$ \{ MainDir \} /completed|g" \
49- -e "s|^InterDir=.*|InterDir=$ \{ MainDir \} /intermediate|g" \
48+ -e "s|^DestDir=.*|DestDir=/downloads /completed|g" \
49+ -e "s|^InterDir=.*|InterDir=/downloads /intermediate|g" \
5050 -e "s|^LogFile=.*|LogFile=$\{ MainDir\} /nzbget.log|g" \
5151 -e "s|^AuthorizedIP=.*|AuthorizedIP=127.0.0.1|g" \
5252 /app/nzbget/share/nzbget/nzbget.conf && \
Original file line number Diff line number Diff line change @@ -37,16 +37,16 @@ RUN \
3737 rm -rf /app/nzbget/bin/ && \
3838 rm -rf /app/nzbget/etc/ && \
3939 sed -i \
40- -e "s|^MainDir=.*|MainDir=/downloads |g" \
40+ -e "s|^MainDir=.*|MainDir=/config |g" \
4141 -e "s|^ScriptDir=.*|ScriptDir=$\{MainDir\}/scripts|g" \
4242 -e "s|^WebDir=.*|WebDir=$\{AppDir\}/webui|g" \
4343 -e "s|^ConfigTemplate=.*|ConfigTemplate=$\{AppDir\}/webui/nzbget.conf.template|g" \
4444 -e "s|^UnrarCmd=.*|UnrarCmd=unrar|g" \
4545 -e "s|^SevenZipCmd=.*|SevenZipCmd=7z|g" \
4646 -e "s|^CertStore=.*|CertStore=$\{AppDir\}/cacert.pem|g" \
4747 -e "s|^CertCheck=.*|CertCheck=yes|g" \
48- -e "s|^DestDir=.*|DestDir=$\{MainDir\} /completed|g" \
49- -e "s|^InterDir=.*|InterDir=$\{MainDir\} /intermediate|g" \
48+ -e "s|^DestDir=.*|DestDir=/downloads /completed|g" \
49+ -e "s|^InterDir=.*|InterDir=/downloads /intermediate|g" \
5050 -e "s|^LogFile=.*|LogFile=$\{MainDir\}/nzbget.log|g" \
5151 -e "s|^AuthorizedIP=.*|AuthorizedIP=127.0.0.1|g" \
5252 /app/nzbget/share/nzbget/nzbget.conf && \
Original file line number Diff line number Diff line change @@ -315,6 +315,6 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
315315
316316# # Versions
317317
318- * ** 27.05.24:** - Rebase to Alpine 3.21.
318+ * ** 27.05.24:** - Rebase to Alpine 3.21. Move MainDir to /config, leave default DestDir/InterDir as /downloads.
319319* ** 27.05.24:** - Rebase to Alpine 3.20.
320320* ** 09.05.24:** - Revive image based on the fork from https://github.com/nzbgetcom/nzbget
Original file line number Diff line number Diff line change @@ -97,6 +97,6 @@ init_diagram: |
9797 "nzbget:testing" <- Base Images
9898# changelog
9999changelogs :
100- - {date: "27.05.24:", desc: "Rebase to Alpine 3.21."}
100+ - {date: "27.05.24:", desc: "Rebase to Alpine 3.21. Move MainDir to /config, leave default DestDir/InterDir as /downloads. "}
101101 - {date: "27.05.24:", desc: "Rebase to Alpine 3.20."}
102102 - {date: "09.05.24:", desc: "Revive image based on the fork from https://github.com/nzbgetcom/nzbget"}
Original file line number Diff line number Diff line change @@ -6,23 +6,16 @@ if [[ ! -f /config/nzbget.conf ]]; then
66 cp /app/nzbget/share/nzbget/nzbget.conf /config/nzbget.conf
77fi
88
9- # Warn if /downloads is the MainDir and isn't mounted
10- if ! grep -qe ' /downloads ' /proc/mounts && grep -qe 'MainDir=/downloads' /config/nzbget.conf; then
11- echo "********************************************* WARNING *********************************************"
12- echo " Your MainDir is set to /downloads in /config/nzbget.conf but /downloads is not a mounted folder "
13- echo " This may result in data loss when your container is updated "
14- echo "***************************************************************************************************"
15- mkdir -p /downloads
16- fi
17-
189# delete lock file if found
19- if [[ -f /downloads /nzbget.lock ]]; then
20- rm /downloads /nzbget.lock
10+ if [[ -f /config /nzbget.lock ]]; then
11+ rm /config /nzbget.lock
2112fi
2213
2314if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
24- lsiown abc:abc \
25- /downloads
15+ if grep -qe ' /downloads ' /proc/mounts; then
16+ lsiown abc:abc \
17+ /downloads
18+ fi
2619
2720 lsiown -R abc:abc \
2821 /config
You can’t perform that action at this time.
0 commit comments