Code Review
/
releng
/
builder.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Update tsdr yaml to pass style checks
[releng/builder.git]
/
jenkins-scripts
/
disable_firewall.sh
1
#!/bin/bash
2
3
OS=`facter operatingsystem`
4
5
case "$OS" in
6
Fedora)
7
systemctl stop firewalld
8
;;
9
CentOS|RedHat)
10
if [ `facter operatingsystemrelease | cut -d '.' -f1` -lt "7" ]; then
11
service iptables stop
12
else
13
systemctl stop firewalld
14
fi
15
;;
16
*)
17
# nothing to do
18
;;
19
esac
20
21
# vim: ts=4 ts=4 sts=4 et :