1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 23:08:07 +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 runGravity
} }
checkSelinux() { checkSelinux() {
if [ -x "$(command -v getenforce)" ]; then if [ -x "$(command -v getenforce)" ]; then
printf "\n::: SELinux Support Detected.." printf "\n::: SELinux Support Detected.."
getenforce | grep 'Enforcing' getenforce | grep 'Enforcing'
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
printf "\n::: SELinux is being Enforced on your system" 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::: 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
printf "\n::: Continuing installation with SELinux Enforcing.." printf "\n::: Continuing installation with SELinux Enforcing.."
printf "\n::: Please refer to official SELinux documentation to create a custom policy." printf "\n::: Please refer to official SELinux documentation to create a custom policy."
else else