| ... | ... |
@@ -565,7 +565,9 @@ fi |
| 565 | 565 |
if [[ is_fedora && $DISTRO =~ (rhel6) ]]; then |
| 566 | 566 |
# Avoid having to configure selinux to allow things like httpd to |
| 567 | 567 |
# access horizion files or run binaries like nodejs (LP#1175444) |
| 568 |
- sudo setenforce 0 |
|
| 568 |
+ if selinuxenabled; then |
|
| 569 |
+ sudo setenforce 0 |
|
| 570 |
+ fi |
|
| 569 | 571 |
|
| 570 | 572 |
# An old version (2.0.1) of python-crypto is probably installed on |
| 571 | 573 |
# a fresh system, via the dependency chain |