aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/install-redhat.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/install-redhat.sh')
-rwxr-xr-xscripts/install-redhat.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/install-redhat.sh b/scripts/install-redhat.sh
index a705f7a..727b0b8 100755
--- a/scripts/install-redhat.sh
+++ b/scripts/install-redhat.sh
@@ -192,9 +192,10 @@ if test -f ${dest}/etc/selinux/config; then
# Ask for relabel.
# Put selinux into permissive, relabel might fail otherwise.
# After first boot (which relabels) setting enforcing should work.
- sed -i -e 's/^SELINUX=.*/SELINUX=permissive/' \
+ sudo sed -i \
+ -e 's/^SELINUX=.*/SELINUX=permissive/' \
${dest}/etc/selinux/config
- touch "${dest}/.autorelabel"
+ sudo touch "${dest}/.autorelabel"
fi
sudo rm -rf "${dest}/var/cache/"{dnf,yum}