Commit cfff1ba6 authored by Meifa Tang's avatar Meifa Tang

if centos, then disable firewalld, beacause ubuntu has no firewalld

parent 9dd46eb9
...@@ -22,8 +22,11 @@ off_selinux() { ...@@ -22,8 +22,11 @@ off_selinux() {
} }
off_firewalld() { off_firewalld() {
systemctl stop firewalld.service &> /dev/null THE_OS=$(awk -F= '/^NAME/{print $2}' /etc/os-release)
systemctl disable firewalld.service &> /dev/null if [ "$THE_OS" == "\"CentOS Linux\"" ];then
systemctl stop firewalld.service &> /dev/null
systemctl disable firewalld.service &> /dev/null
fi
} }
increase_file_limits() { increase_file_limits() {
......
Markdown is supported
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