mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 13:50:17 +00:00
verbosity
This commit is contained in:
parent
00aff6a906
commit
15c674ba29
1 changed files with 5 additions and 2 deletions
|
@ -938,13 +938,16 @@ updatePihole() {
|
||||||
|
|
||||||
checkSelinux() {
|
checkSelinux() {
|
||||||
if [ -x "$(command -v getenforce)" ]; then
|
if [ -x "$(command -v getenforce)" ]; then
|
||||||
printf "\n::: SELinux Support Detected.."
|
echo -n "\n::: SELinux Support Detected... Mode: "
|
||||||
enforceMode=$(getenforce)
|
enforceMode=$(getenforce)
|
||||||
|
echo "${enforceMode}"
|
||||||
if [[ "${enforceMode}" == "Enforcing" ]]; 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
|
echo "Enforcing"
|
||||||
|
if (whiptail --title "SELinux Enforcing 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."
|
||||||
else
|
else
|
||||||
|
printf "\n::: Not continuing install after SELinux Enforcing detected"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue