mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-22 15:56:58 +00:00
No need to disable SELinux. If the file is created in the /etc/firewalld/services directory it will have the right context. If you don't want to create it directly in the directory as in previous versions of the doc you can move it there and run restorecon on it.
parent
dbe14c6146
commit
41d0815df3
1 changed files with 2 additions and 15 deletions
|
@ -2,15 +2,6 @@ The following instructions are for installing Sonarr on CentOS 7.
|
||||||
|
|
||||||
Please note these were the steps taken by an experienced user.
|
Please note these were the steps taken by an experienced user.
|
||||||
|
|
||||||
*If you don't feel like fighting SELinux
|
|
||||||
|
|
||||||
setenforce 0
|
|
||||||
|
|
||||||
*And to ensure it stays that way
|
|
||||||
|
|
||||||
vi /etc/selinux/config
|
|
||||||
Find the value enforcing, and change to disabled
|
|
||||||
|
|
||||||
*Install some repos and packages
|
*Install some repos and packages
|
||||||
|
|
||||||
yum install epel-release yum-utils -y
|
yum install epel-release yum-utils -y
|
||||||
|
@ -65,18 +56,14 @@ yum -y install wget git par2cmdline p7zip unrar unzip tar gcc python-yenc python
|
||||||
mv sonarr.service /usr/lib/systemd/system/
|
mv sonarr.service /usr/lib/systemd/system/
|
||||||
|
|
||||||
*Add firewall exceptions if the firewall is enabled
|
*Add firewall exceptions if the firewall is enabled
|
||||||
|
tee /etc/firewalld/services/sonarr.xml << EOF
|
||||||
cat > sonarr.xml << EOF
|
|
||||||
|
|
||||||
|
|
||||||
<service>
|
<service>
|
||||||
<short>sonarr</short>
|
<short>sonarr</short>
|
||||||
<description>Sonarr Download Service</description>
|
<description>Sonarr Download Service</description>
|
||||||
<port protocol="tcp" port="8989"/>
|
<port protocol="tcp" port="8989"/>
|
||||||
</service>
|
</service>
|
||||||
EOF
|
EOF
|
||||||
|
firewall-cmd --reload
|
||||||
mv sonarr.xml /etc/firewalld/services/
|
|
||||||
firewall-cmd --permanent --add-service sonarr
|
firewall-cmd --permanent --add-service sonarr
|
||||||
firewall-cmd --reload
|
firewall-cmd --reload
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue