Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CI: Change conclusion getter
[releng/global-jjb.git]
/
jenkins-init-scripts
/
disable-firewall.sh
diff --git
a/jenkins-init-scripts/disable-firewall.sh
b/jenkins-init-scripts/disable-firewall.sh
index
79e1d3a
..
13ae8cf
100755
(executable)
--- 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)
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
service iptables stop
else
systemctl stop firewalld