mirror of
https://github.com/linuxserver/docker-nzbhydra2.git
synced 2026-02-20 04:23:41 +08:00
V3ify
This commit is contained in:
parent
258087ff96
commit
bc06ef9203
@ -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
|
||||
11
root/etc/s6-overlay/s6-rc.d/init-nzbhydra2-config/run
Executable file
11
root/etc/s6-overlay/s6-rc.d/init-nzbhydra2-config/run
Executable 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
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-nzbhydra2-config/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-nzbhydra2-config/type
Normal file
@ -0,0 +1 @@
|
||||
oneshot
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-nzbhydra2-config/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-nzbhydra2-config/up
Normal file
@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-nzbhydra2-config/run
|
||||
@ -0,0 +1 @@
|
||||
3
|
||||
8
root/etc/s6-overlay/s6-rc.d/svc-nzbhydra2/run
Executable file
8
root/etc/s6-overlay/s6-rc.d/svc-nzbhydra2/run
Executable 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
|
||||
1
root/etc/s6-overlay/s6-rc.d/svc-nzbhydra2/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/svc-nzbhydra2/type
Normal file
@ -0,0 +1 @@
|
||||
longrun
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user