untested convert user prompt to whiptail

pull/1028/head
Promofaux 7 years ago
parent a795fd698d
commit fdb64a5702

@ -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

Loading…
Cancel
Save