Commit 49633a7f authored by ayllon's avatar ayllon
Browse files

Allow httpd to connect to a db

parent b4c12193
......@@ -65,11 +65,13 @@ so Apache can bind to it.
%post selinux
if [ "$1" -le "1" ] ; then # First install
semanage port -a -t http_port_t -p tcp 8446
setsebool -P httpd_can_network_connect=1
fi
%preun selinux
if [ "$1" -lt "1" ] ; then # Final removal
semanage port -d -t http_port_t -p tcp 8446
setsebool -P httpd_can_network_connect=0
fi
%prep
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment