This commit is contained in:
Roxedus 2022-12-13 21:52:45 +01:00
parent 258087ff96
commit bc06ef9203
No known key found for this signature in database
GPG Key ID: EBC13557C4D91D7B
13 changed files with 23 additions and 18 deletions

View File

@ -1,8 +0,0 @@
#!/usr/bin/with-contenv bash
# make our folders
mkdir -p /config/logs
# permissions
chmod +x /app/nzbhydra2/bin/nzbhydra2
chown -R abc:abc /config

View File

@ -0,0 +1,11 @@
#!/usr/bin/with-contenv bash
# 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

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-nzbhydra2-config/run

View File

@ -0,0 +1 @@
3

View File

@ -0,0 +1,8 @@
#!/usr/bin/with-contenv bash
# 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/bin s6-setuidgid abc /usr/bin/python3 nzbhydra2wrapperPy3.py --nobrowser --datafolder /config

View File

@ -0,0 +1 @@
longrun

View File

@ -1,10 +0,0 @@
#!/usr/bin/with-contenv bash
# unset unraid specific ENV to avoid crashing
unset HOST_OS
cd /app/nzbhydra2/bin || exit
exec \
s6-setuidgid abc /usr/bin/python3 nzbhydra2wrapperPy3.py \
--nobrowser --datafolder /config