Merge "Ensure rhel7 image could be build"

This commit is contained in:
Zuul 2018-05-24 21:23:40 +00:00 committed by Gerrit Code Review
commit 78b163fb14
4 changed files with 6 additions and 6 deletions

View File

@ -20,6 +20,6 @@ if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
fi
set -e
if [ "$DISTRO_NAME" == "centos" ]; then
if [[ "$DISTRO_NAME" =~ (centos|rhel7) ]] ; then
yum -y install --enablerepo=epel haveged
fi

View File

@ -38,7 +38,7 @@ mv /tmp/forwarding.conf /etc/unbound/
chown root:root /etc/unbound/forwarding.conf
chmod a+r /etc/unbound/forwarding.conf
if [[ "$DISTRO_NAME" =~ (centos|fedora) ]] ; then
if [[ "$DISTRO_NAME" =~ (centos|rhel7|fedora) ]] ; then
LOG_FILE="/var/lib/unbound/unbound.log"
else
LOG_FILE="/var/log/unbound.log"
@ -51,7 +51,7 @@ server:
verbosity: 5"
echo "$UNBOUND_LOGGING_CONF" > /tmp/unbound-logging.conf
if [[ "$DISTRO_NAME" =~ (centos|fedora|opensuse) ]] ; then
if [[ "$DISTRO_NAME" =~ (centos|rhel7|fedora|opensuse) ]] ; then
UNBOUND_CONFD=/etc/unbound/conf.d
elif [[ "$DISTRO_NAME" =~ 'gentoo' ]] ; then
UNBOUND_CONFD=/etc/unbound/conf.d

View File

@ -24,7 +24,7 @@ if [[ "$DISTRO_NAME" =~ (debian|ubuntu) ]] ; then
rules_dir=/etc/iptables
ipv4_rules=${rules_dir}/rules.v4
ipv6_rules=${rules_dir}/rules.v6
elif [[ "$DISTRO_NAME" =~ (centos|fedora) ]] ; then
elif [[ "$DISTRO_NAME" =~ (centos|rhel7|fedora) ]] ; then
rules_dir=/etc/sysconfig
ipv4_rules=${rules_dir}/iptables
ipv6_rules=${rules_dir}/ip6tables

View File

@ -26,7 +26,7 @@ if [[ "$DISTRO_NAME" =~ (debian|ubuntu) ]] ; then
else
service_name=netfilter-persistent
fi
elif [[ "$DISTRO_NAME" =~ (centos|fedora) ]] ; then
elif [[ "$DISTRO_NAME" =~ (centos|rhel7|fedora) ]] ; then
service_name=iptables
elif [[ "$DISTRO_NAME" == 'opensuse' ]] ; then
service_name=SuSEfirewall2
@ -51,7 +51,7 @@ case "$DIB_INIT_SYSTEM" in
else
systemctl enable ${service_name}.service
fi
if [[ "$DISTRO_NAME" =~ (centos|fedora) ]] ; then
if [[ "$DISTRO_NAME" =~ (centos|rhel7|fedora) ]] ; then
systemctl enable ip6tables.service
fi
;;