Files
sahara-image-elements/elements/disable-firewall/post-install.d/31-disable-ip6tables
Luigi Toscano 5d05a3db2f Remove CentOS6/RHEL6 support
Deprecated in Pike, and removed from diskimage-builder for a while.

Story: 2001996
Task: 19626
Change-Id: I9b4eab56fcbfcb2e97805fba805eafeeafa5d540
2018-05-15 18:22:50 +02:00

26 lines
451 B
Bash
Executable File

#!/bin/bash
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
case "$DISTRO_NAME" in
fedora | centos7 | rhel7 )
install-packages iptables-services
;;
esac
case "${DISTRO_NAME}" in
fedora | rhel7)
if type -p service; then
service ip6tables save
chkconfig ip6tables off
fi
;;
* )
echo "Unknown distro: $DISTRO_NAME. Skipping."
;;
esac