sys-libs/libsemanage: fix migration path message check in postinst
authorJason Zaman <perfinion@gentoo.org>
Sun, 27 May 2018 11:06:48 +0000 (19:06 +0800)
committerJason Zaman <perfinion@gentoo.org>
Sun, 27 May 2018 11:07:55 +0000 (19:07 +0800)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

sys-libs/libsemanage/libsemanage-2.8.ebuild
sys-libs/libsemanage/libsemanage-9999.ebuild

index 0cc1dbbf8b49c163ee08985b7451a4472d238895..f527f9bb25f7afbe3a13ad0de6f5b734faae7114 100644 (file)
@@ -116,7 +116,7 @@ multilib_src_install() {
 pkg_postinst() {
        # Migrate the SELinux semanage configuration store if not done already
        local selinuxtype=$(awk -F'=' '/SELINUXTYPE=/ {print $2}' "${EROOT}"/etc/selinux/config 2>/dev/null)
-       if [ -n "${selinuxtype}" ] && [ ! -d "${EROOT}"/var/lib/selinux/${mcs}/active ] ; then
+       if [ -n "${selinuxtype}" ] && [ ! -d "${EROOT}"/var/lib/selinux/${selinuxtype}/active ] ; then
                ewarn "Since the 2.4 SELinux userspace, the policy module store is moved"
                ewarn "from /etc/selinux to /var/lib/selinux. The migration will be run now."
                ewarn "If there are any issues, it can be done manually by running:"
index 0cc1dbbf8b49c163ee08985b7451a4472d238895..f527f9bb25f7afbe3a13ad0de6f5b734faae7114 100644 (file)
@@ -116,7 +116,7 @@ multilib_src_install() {
 pkg_postinst() {
        # Migrate the SELinux semanage configuration store if not done already
        local selinuxtype=$(awk -F'=' '/SELINUXTYPE=/ {print $2}' "${EROOT}"/etc/selinux/config 2>/dev/null)
-       if [ -n "${selinuxtype}" ] && [ ! -d "${EROOT}"/var/lib/selinux/${mcs}/active ] ; then
+       if [ -n "${selinuxtype}" ] && [ ! -d "${EROOT}"/var/lib/selinux/${selinuxtype}/active ] ; then
                ewarn "Since the 2.4 SELinux userspace, the policy module store is moved"
                ewarn "from /etc/selinux to /var/lib/selinux. The migration will be run now."
                ewarn "If there are any issues, it can be done manually by running:"