1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 14:58:08 +00:00

untested convert user prompt to whiptail

This commit is contained in:
Promofaux 2016-12-23 16:53:42 +00:00
parent a795fd698d
commit fdb64a5702

View File

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