diff --git a/install.sh b/install.sh index 9064b66..736d6cb 100755 --- a/install.sh +++ b/install.sh @@ -336,13 +336,13 @@ function disable_ipv6() { else echo "IPv6 already disabled." fi - fi - - if ! sudo grep "ipv6.disable=1" /boot/grub2/grub.cfg; then - sudo grubby --args=ipv6.disable=1 --update-kernel=ALL - sudo grub2-mkconfig -o /boot/grub2/grub.cfg - else - echo "IPv6 already disabled." + elif test -f /etc/redhat-release; then + if ! sudo grep "ipv6.disable=1" /boot/grub2/grub.cfg; then + sudo grubby --args=ipv6.disable=1 --update-kernel=ALL + sudo grub2-mkconfig -o /boot/grub2/grub.cfg + else + echo "IPv6 already disabled." + fi fi }