X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jenkins-init-scripts%2Fdisable-firewall.sh;h=b3efb22d98096338bdd3f51aea2bdb0778d642be;hb=34f3b084b13181baf1ba72c7eae574198feea16c;hp=79e1d3a80a0981b417c75ae8f3fecf48b1fd30d5;hpb=a09b8bab2c37f67f0f5e9ef36f9e93b330fdd571;p=releng%2Fglobal-jjb.git diff --git a/jenkins-init-scripts/disable-firewall.sh b/jenkins-init-scripts/disable-firewall.sh index 79e1d3a8..b3efb22d 100755 --- a/jenkins-init-scripts/disable-firewall.sh +++ b/jenkins-init-scripts/disable-firewall.sh @@ -16,7 +16,8 @@ case "$OS" in systemctl stop firewalld ;; CentOS|RedHat) - if [ "$(facter operatingsystemrelease | cut -d '.' -f1)" -lt "7" ]; then + os_release_ver = "$(facter operatingsystemrelease | cut -d '.' -f1)" + if [ "${os_release_ver}" -lt "7" ]; then service iptables stop else systemctl stop firewalld