Merge pull request #32 from linuxserver/revert-31-master-v5

This commit is contained in:
Adam
2023-01-20 20:46:54 +00:00
committed by GitHub
8 changed files with 20 additions and 37 deletions
+5 -9
View File
@@ -17,7 +17,6 @@ RUN \
echo "**** install packages ****" && \
apt-get update && \
apt-get install --no-install-recommends -y \
libfreetype6 \
openjdk-17-jre-headless \
python3 \
unzip && \
@@ -30,10 +29,10 @@ RUN \
curl -o \
/tmp/nzbhydra2.zip -L \
"https://github.com/theotherp/nzbhydra2/releases/download/v${NZBHYDRA2_VER}/nzbhydra2-${NZBHYDRA2_VER}-linux.zip" && \
mkdir -p /app/nzbhydra2 && \
unzip /tmp/nzbhydra2.zip -d /app/nzbhydra2 && \
chmod +x /app/nzbhydra2/nzbhydra2wrapperPy3.py && \
chmod +x /app/nzbhydra2/core && \
mkdir -p /app/nzbhydra2/bin && \
unzip /tmp/nzbhydra2.zip -d /app/nzbhydra2/bin && \
chmod +x /app/nzbhydra2/bin/nzbhydra2 && \
chmod +x /app/nzbhydra2/bin/nzbhydra2wrapperPy3.py && \
echo "ReleaseType=${NZBHYDRA2_RELEASE_TYPE}\nPackageVersion=${VERSION}\nPackageAuthor=linuxserver.io" > /app/nzbhydra2/package_info && \
mkdir -p /defaults && \
curl -o \
@@ -46,10 +45,7 @@ RUN \
/var/lib/apt/lists/* \
/var/tmp/* \
/var/log/* \
/app/nzbhydra2/upstart \
/app/nzbhydra2/rc.d \
/app/nzbhydra2/sysv \
/app/nzbhydra2/systemd
/app/nzbhydra2/bin/{upstart,rc.d,sysv,systemd}
# copy local files
COPY root/ /
+5 -9
View File
@@ -17,7 +17,6 @@ RUN \
echo "**** install packages ****" && \
apt-get update && \
apt-get install --no-install-recommends -y \
libfreetype6 \
openjdk-17-jre-headless \
python3 \
unzip && \
@@ -30,10 +29,10 @@ RUN \
curl -o \
/tmp/nzbhydra2.zip -L \
"https://github.com/theotherp/nzbhydra2/releases/download/v${NZBHYDRA2_VER}/nzbhydra2-${NZBHYDRA2_VER}-linux.zip" && \
mkdir -p /app/nzbhydra2 && \
unzip /tmp/nzbhydra2.zip -d /app/nzbhydra2 && \
chmod +x /app/nzbhydra2/nzbhydra2wrapperPy3.py && \
chmod +x /app/nzbhydra2/core && \
mkdir -p /app/nzbhydra2/bin && \
unzip /tmp/nzbhydra2.zip -d /app/nzbhydra2/bin && \
chmod +x /app/nzbhydra2/bin/nzbhydra2 && \
chmod +x /app/nzbhydra2/bin/nzbhydra2wrapperPy3.py && \
echo "ReleaseType=${NZBHYDRA2_RELEASE_TYPE}\nPackageVersion=${VERSION}\nPackageAuthor=linuxserver.io" > /app/nzbhydra2/package_info && \
mkdir -p /defaults && \
curl -o \
@@ -46,10 +45,7 @@ RUN \
/var/lib/apt/lists/* \
/var/tmp/* \
/var/log/* \
/app/nzbhydra2/upstart \
/app/nzbhydra2/rc.d \
/app/nzbhydra2/sysv \
/app/nzbhydra2/systemd
/app/nzbhydra2/bin/{upstart,rc.d,sysv,systemd}
# copy local files
COPY root/ /
+5 -9
View File
@@ -17,7 +17,6 @@ RUN \
echo "**** install packages ****" && \
apt-get update && \
apt-get install --no-install-recommends -y \
libfreetype6 \
openjdk-17-jre-headless \
python3 \
unzip && \
@@ -30,10 +29,10 @@ RUN \
curl -o \
/tmp/nzbhydra2.zip -L \
"https://github.com/theotherp/nzbhydra2/releases/download/v${NZBHYDRA2_VER}/nzbhydra2-${NZBHYDRA2_VER}-linux.zip" && \
mkdir -p /app/nzbhydra2 && \
unzip /tmp/nzbhydra2.zip -d /app/nzbhydra2 && \
chmod +x /app/nzbhydra2/nzbhydra2wrapperPy3.py && \
chmod +x /app/nzbhydra2/core && \
mkdir -p /app/nzbhydra2/bin && \
unzip /tmp/nzbhydra2.zip -d /app/nzbhydra2/bin && \
chmod +x /app/nzbhydra2/bin/nzbhydra2 && \
chmod +x /app/nzbhydra2/bin/nzbhydra2wrapperPy3.py && \
echo "ReleaseType=${NZBHYDRA2_RELEASE_TYPE}\nPackageVersion=${VERSION}\nPackageAuthor=linuxserver.io" > /app/nzbhydra2/package_info && \
mkdir -p /defaults && \
curl -o \
@@ -46,10 +45,7 @@ RUN \
/var/lib/apt/lists/* \
/var/tmp/* \
/var/log/* \
/app/nzbhydra2/upstart \
/app/nzbhydra2/rc.d \
/app/nzbhydra2/sysv \
/app/nzbhydra2/systemd
/app/nzbhydra2/bin/{upstart,rc.d,sysv,systemd}
# copy local files
COPY root/ /
-1
View File
@@ -235,7 +235,6 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Versions
* **20.01.23:** - Update dependencies for v5.
* **10.12.22:** - Bump master JRE to v17. Default mapIpToHost to false.
* **11.09.22:** - Migrate to s6v3.
* **03.05.22:** - Rebase to Jammy.
-1
View File
@@ -56,7 +56,6 @@ app_setup_block: |
# changelog
changelogs:
- { date: "20.01.23:", desc: "Update dependencies for v5." }
- { date: "10.12.22:", desc: "Bump master JRE to v17. Default mapIpToHost to false." }
- { date: "11.09.22:", desc: "Migrate to s6v3." }
- { date: "03.05.22:", desc: "Rebase to Jammy." }
@@ -1,13 +1,11 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
# make our folders
# make our folders
mkdir -p /config/logs
if [[ ! -f /config/nzbhydra.yml ]]; then
cp /defaults/nzbhydra.yml /config/nzbhydra.yml
fi
# permissions
lsiown -R abc:abc \
/config
# permissions
lsiown -R abc:abc /config
@@ -1,9 +1,8 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
# unset unraid specific ENV to avoid crashing
# unset unraid specific ENV to avoid crashing
unset HOST_OS
exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 5076" \
cd /app/nzbhydra2 s6-setuidgid abc /usr/bin/python3 nzbhydra2wrapperPy3.py --nobrowser --datafolder /config
cd /app/nzbhydra2/bin s6-setuidgid abc /usr/bin/python3 nzbhydra2wrapperPy3.py --nobrowser --datafolder /config