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:
James Slagle 2014-12-23 09:49:27 -05:00
parent ecd2e912b3
commit dcca15b459
1 changed files with 1 additions and 1 deletions

View File

@ -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