Skip to content

Commit

Permalink
s/sed/perl/ to deal with bug on new centos
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed Dec 5, 2018
1 parent 45e7550 commit f403923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtualmin-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit f403923

Please sign in to comment.