Update usenet-docker.sh

This commit is contained in:
2019-07-09 11:45:35 -04:00
parent 572ab60723
commit bd13b91d02

View File

@@ -195,6 +195,31 @@ EOF
}
nzbhydra2 () {
docker create \
--name=hydra2 \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/London \
-p 5076:5076 \
-v <path to data>:/config \
-v <nzb download>:/downloads \
--restart unless-stopped \
linuxserver/hydra2
cat << EOF >> /etc/firewalld/services/nzbhydra.xml
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>nzbhydra</short>
<description>nzbhydra</description>
<port protocol="tcp" port="5076"/>
</service>
EOF
sleep 5
firewall-cmd --add-service=nzbhydra --permanent
firewall-cmd --reload
docker start nzbhydra2
}
# Debian OS
if [ -f /etc/debian_version ]; then
echo "Debian is not yet supported"