diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 15a0a868..d8899ce3 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -934,16 +934,14 @@ updatePihole() { runGravity } + + checkSelinux() { if [ -x "$(command -v getenforce)" ]; then printf "\n::: SELinux Support Detected.." getenforce | grep 'Enforcing' if [ $? -eq 0 ]; then - printf "\n::: SELinux is being Enforced on your system" - printf "\n::: WARNING: PiHole does not support SELinux at this time.." - read -r -p "Continue with SELinux Enforcing? [y/N]" continue - if [[ $continue =~ ^([yY][eE][sS]|[yY])$ ]] - then + if (whiptail --title "SELinux Detected" --yesno "SELinux is being Enforced on your system. \n Pi-hole does not support SELinux at this time...\nContinue with SELinux Enforcing?" 8 78); then printf "\n::: Continuing installation with SELinux Enforcing.." printf "\n::: Please refer to official SELinux documentation to create a custom policy." else