mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
untested convert user prompt to whiptail
This commit is contained in:
parent
a795fd698d
commit
fdb64a5702
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue