Commit 4e457ee9912379252210a1f1d8dfb83de43e018f

Authored by Sergio Oliveira
1 parent 0433524f

Install selinux before to add rules

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
utils/reverseproxy_ssh_setup
... ... @@ -7,6 +7,9 @@ port="$1"
7 7 # switch SSH to port $port
8 8 sed -i -e 's/^#\?\s*Port\s*[0-9]\+\s*$/Port '$port'/g' /etc/ssh/sshd_config
9 9  
  10 +# Install SELinux
  11 +yum install -y selinux-policy policycoreutils-python
  12 +
10 13 # Tell SELinux to allow the new port
11 14 semanage port -a -t ssh_port_t -p tcp "$port"
12 15  
... ...