Only fail if selinux is in enforcing

This commit is contained in:
Tom Franklin 2022-08-08 00:42:18 +01:00
parent 6776e65fd9
commit 96b4339d86

View File

@ -640,7 +640,7 @@ place_channel_configuration() {
check_selinux() {
if command -v getenforce > /dev/null 2>&1; then
if ! [ "$(getenforce)" = "Disabled" ]; then
if [ "$(getenforce)" = "Enforcing" ]; then
failure <<EOF
Nix does not work with selinux enabled yet!
see https://github.com/NixOS/nix/issues/2374