fix firewall error message
This commit is contained in:
12
install.sh
12
install.sh
@@ -97,21 +97,21 @@ fi
|
|||||||
|
|
||||||
# set firewall
|
# set firewall
|
||||||
echo -e "firewall-cmd --zone=public --add-port=80/tcp --permanent" > $firelogloc
|
echo -e "firewall-cmd --zone=public --add-port=80/tcp --permanent" > $firelogloc
|
||||||
firewall-cmd --zone=public --add-port=80/tcp --permanent >> $firelogloc
|
firewall-cmd --zone=public --add-port=80/tcp --permanent 1>> $firelogloc 2>> $firelogloc
|
||||||
if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
echo -e "firewall failed to update port 80 correctly (this may not be an issue). $firelogmsg"
|
echo -e "\tfirewall failed to update port 80 correctly (this may not be an issue). $firelogmsg"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "firewall-cmd --zone=public --add-port=443/tcp --permanent" >> $firelogloc
|
echo -e "firewall-cmd --zone=public --add-port=443/tcp --permanent" >> $firelogloc
|
||||||
firewall-cmd --zone=public --add-port=443/tcp --permanent >> $firelogloc
|
firewall-cmd --zone=public --add-port=443/tcp --permanent 1>> $firelogloc 2>> $firelogloc
|
||||||
if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
echo -e "firewall failed to update port 443 correctly, (this may not be an issue). $firelogmsg"
|
echo -e "\tfirewall failed to update port 443 correctly, (this may not be an issue). $firelogmsg"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "firewall-cmd --reload" >> $firelogloc
|
echo -e "firewall-cmd --reload" >> $firelogloc
|
||||||
firewall-cmd --reload >> $firelogloc
|
firewall-cmd --reload 1>> $firelogloc 2>> $firelogloc
|
||||||
if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
echo -e "firewall failed to reload, (this may not be an issue). $firelogmsg"
|
echo -e "\tfirewall failed to reload, (this may not be an issue). $firelogmsg"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "semanage permissive -a httpd_t" >> $firelogloc
|
echo -e "semanage permissive -a httpd_t" >> $firelogloc
|
||||||
|
|||||||
Reference in New Issue
Block a user