From f4039230e2c6c60136ca723288835c10c3ec2db8 Mon Sep 17 00:00:00 2001 From: Joe Cooper Date: Wed, 5 Dec 2018 03:41:05 -0600 Subject: [PATCH] s/sed/perl/ to deal with bug on new centos --- virtualmin-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtualmin-install.sh b/virtualmin-install.sh index cd56c04..036c1f7 100644 --- a/virtualmin-install.sh +++ b/virtualmin-install.sh @@ -898,7 +898,7 @@ disable_selinux () { seconfigfiles="/etc/selinux/config /etc/sysconfig/selinux" for i in $seconfigfiles; do if [ -e "$i" ]; then - sed -i "s/SELINUX=.*/SELINUX=disabled/" "$i" + perl -pi -e 's/^SELINUX=.*/SELINUX=disabled/" "$i" fi done }