mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-09 15:40:54 +00:00
maybe
This commit is contained in:
parent
c45c3a72b5
commit
00aff6a906
@ -939,8 +939,8 @@ updatePihole() {
|
|||||||
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'
|
enforceMode=$(getenforce)
|
||||||
if [ $? -eq 0 ]; then
|
if [[ "${enforceMode}" == "Enforcing" ]]; then
|
||||||
if (whiptail --title "SELinux Detected" --yesno "SELinux is being Enforced on your system!\n\nPi-hole currently does not support SELinux, but you may still continue with the installation.\n\nNote: Admin UI Will not function fully without setting your policies correctly\n\nContinue installing Pi-hole?" ${r} ${c}); then
|
if (whiptail --title "SELinux Detected" --yesno "SELinux is being Enforced on your system!\n\nPi-hole currently does not support SELinux, but you may still continue with the installation.\n\nNote: Admin UI Will not function fully without setting your policies correctly\n\nContinue installing Pi-hole?" ${r} ${c}); 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."
|
||||||
|
Loading…
Reference in New Issue
Block a user