added sonarr, fixed radarr firewall command

This commit is contained in:
2018-12-18 09:54:09 -05:00
parent fd9b54f92e
commit 66852bc060

View File

@@ -124,12 +124,37 @@ radarr () {
<port protocol="tcp" port="7878"/>
</service>
EOF
firewall-cmd --add-service=omradarrbi --permanent
firewall-cmd --add-service=radarr --permanent
firewall-cmd --reload
docker start radarr
}
sonarr () {
docker create \
--name=sonarr \
-v /etc/docker/config/sonarr:/config \
-v /merdia/downloads:/downloads \
-v /mnt/plex/media/TV:/tv \
-e PGID=0 -e PUID=0 \
-e TZ=America/New_York \
-p 8989:8989 \
--restart=always \
linuxserver/sonarr
cat << EOF >> /etc/firewalld/services/sonarr.xml
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>sonarr</short>
<description>sonarr</description>
<port protocol="tcp" port="8989"/>
</service>
EOF
firewall-cmd --add-service=sonarr --permanent
firewall-cmd --reload
docker start sonarr
}
# Debian OS
if [ -f /etc/debian_version ]; then
echo "Debian is not yet supported"