Skip to content

Commit

Permalink
Fix bogus sed call
Browse files Browse the repository at this point in the history
-i was being considered an argument for -e, but it isn't syntactically
correct.
  • Loading branch information
DemiMarie committed Dec 23, 2022
1 parent fdcadde commit 0c3aea3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rpm_spec/core-agent.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,6 @@ fi

%selinux_modules_install %{_datadir}/selinux/packages/qubes-qfile-unpacker.pp %{_datadir}/selinux/packages/qubes-xendriverdomain.pp %{_datadir}/selinux/packages/qubes-misc.pp
{
set -x
flock --no-fork -- 9
flock --no-fork -- 8
for i in /etc/selinux/*/contexts/files/file_contexts.subs; do
Expand Down Expand Up @@ -717,7 +716,7 @@ if [ ! -f /.qubes-relabeled ]; then
/etc/selinux/targeted/contexts/files/file_contexts \
/mnt/proc /mnt/sys /mnt/dev /mnt/tmp /mnt/rw /mnt/home \
/mnt/usr/lib/systemd
sed -e -i 's/^SELINUX=disabled/SELINUX=permissive/' /etc/selinux/config
sed -i -- 's/^SELINUX=disabled/SELINUX=permissive/' /etc/selinux/config
touch /.autorelabel
fi
exit 0
Expand Down

0 comments on commit 0c3aea3

Please sign in to comment.