Skip to content

Commit

Permalink
Ensure correct SELinux labels for libvirt in system setup
Browse files Browse the repository at this point in the history
  • Loading branch information
EpicOfficer committed Aug 2, 2024
1 parent 60df4aa commit cee6c1b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion files/system/usr/libexec/quantix-system-setup
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/bash

# Script version
readonly QNTX_VER=11
readonly QNTX_VER=12
readonly QNTX_VER_DIR="/etc/quantix"
readonly QNTX_VER_FILE="${QNTX_VER_DIR}/qntx_version"
QNTX_VER_RAN=""
Expand Down Expand Up @@ -68,5 +68,8 @@ do
done
done

restorecon -rv /var/log/libvirt
restorecon -rv /var/lib/libvirt

# Write the version
echo "${QNTX_VER}" > "${QNTX_VER_FILE}" || { echo "Error writing to ${QNTX_VER_FILE}." >&2; exit 1; }

0 comments on commit cee6c1b

Please sign in to comment.