aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-07-06 19:19:12 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-07-06 19:19:12 +0200
commit6e8c81ab7fe0c1dc5c3388b60fe2ae18a8394c75 (patch)
tree8e35e1c8737268de7273ebfd90f137a2a41d9644
parentf2a6270bd9716780c45a17a119854938071a65df (diff)
downloadimagefish-6e8c81ab7fe0c1dc5c3388b60fe2ae18a8394c75.tar.gz
fix selinux tweak
-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}