Support RedHatEnterpriseWorkstation in add-rule
RedHatEnterpriseWorkstation is a variant of RHEL 7, and a possible output from "lsb_release -si", so add-rule needs to support checking for that value. Change-Id: Ie57ba4e94a50129737018d63b121d4c0b1dcc6dc
This commit is contained in:
parent
ecd2e912b3
commit
dcca15b459
|
@ -18,7 +18,7 @@ RULE="$@"
|
|||
DISTRO=`lsb_release -si` || true
|
||||
|
||||
|
||||
if [[ "RedHatEnterpriseServer CentOS Fedora" =~ "$DISTRO" ]]; then
|
||||
if [[ "RedHatEnterpriseServer RedHatEnterpriseWorkstation CentOS Fedora" =~ "$DISTRO" ]]; then
|
||||
IPT_FILE=
|
||||
# Check if the iptables service is active
|
||||
if systemctl is-active iptables.service ; then
|
||||
|
|
Loading…
Reference in New Issue