Merge "Ensure rhel7 image could be build"
This commit is contained in:
commit
78b163fb14
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user