Browse Source

Create selinux.sh

FusionPBX 8 năm trước cách đây
mục cha
commit
e5943517d1
1 tập tin đã thay đổi với 15 bổ sung0 xóa
  1. 15 0
      centos/resources/selinux.sh

+ 15 - 0
centos/resources/selinux.sh

@@ -0,0 +1,15 @@
+#!/bin/sh
+
+#move to script directory so all relative paths work
+cd "$(dirname "$0")"
+
+#includes
+. ./resources/config.sh
+. ./resources/colors.sh
+
+# Disable SELinux
+verbose "Disabling SELinux"
+warning "Reboot required after installation completes"
+setenforce 0
+sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/selinux/config
+verbose "SELinux disabled"