V3ify
This commit is contained in:
@@ -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
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
oneshot
|
||||
@@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-nzbhydra2-config/run
|
||||
@@ -0,0 +1 @@
|
||||
3
|
||||
+8
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user