fix setup script to ensure SELinux config writes correctly and clean up whitespace
All checks were successful
Nix Format Check / check-format (push) Successful in 38s
All checks were successful
Nix Format Check / check-format (push) Successful in 38s
This commit is contained in:
2
setup.sh
2
setup.sh
@ -427,7 +427,7 @@ check_selinux() {
|
|||||||
if [ "$(getenforce)" = "Enforcing" ]; then
|
if [ "$(getenforce)" = "Enforcing" ]; then
|
||||||
log_warning "SELinux is enabled. Adjusting SELinux to permissive mode..."
|
log_warning "SELinux is enabled. Adjusting SELinux to permissive mode..."
|
||||||
sudo setenforce Permissive || die "Failed to disable SELinux"
|
sudo setenforce Permissive || die "Failed to disable SELinux"
|
||||||
tee /etc/selinux/config <<EOF
|
sudo tee /etc/selinux/config << EOF > /dev/null || die "Failed to write to /etc/selinux/config"
|
||||||
SELINUX=permissive
|
SELINUX=permissive
|
||||||
SELINUXTYPE=targeted
|
SELINUXTYPE=targeted
|
||||||
EOF
|
EOF
|
||||||
|
Reference in New Issue
Block a user