aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2022-06-09 23:15:26 +0300
committerArtturin <Artturin@artturin.com>2022-06-10 05:12:03 +0300
commitbd3a17d00cb92e114a1dc54fa3e0bac5f3261a39 (patch)
tree9099e75f846a2423772e30c9d90febe4cdca647a /scripts
parent1bc17ae6174b6307d2e1968583b527379c4a7019 (diff)
install-multi-user: check if selinux is enabled and if it is then abort
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install-multi-user.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/install-multi-user.sh b/scripts/install-multi-user.sh
index b79a9c23a..9a18280ef 100644
--- a/scripts/install-multi-user.sh
+++ b/scripts/install-multi-user.sh
@@ -638,6 +638,17 @@ place_channel_configuration() {
fi
}
+check_selinux() {
+ if command -v getenforce > /dev/null 2>&1; then
+ if ! [ "$(getenforce)" = "Disabled" ]; then
+ failure <<EOF
+Nix does not work with selinux enabled yet!
+see https://github.com/NixOS/nix/issues/2374
+EOF
+ fi
+ fi
+}
+
welcome_to_nix() {
ok "Welcome to the Multi-User Nix Installation"
@@ -866,6 +877,8 @@ when I need to.
EOF
fi
+ check_selinux
+
if [ "$(uname -s)" = "Darwin" ]; then
# shellcheck source=./install-darwin-multi-user.sh
. "$EXTRACTED_NIX_PATH/install-darwin-multi-user.sh"