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 }