mail-mta/courier: fix ROOT check in pkg_postinst

With EAPI 7+, ROOT and others will be blank (not /).

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-04-22 18:39:38 +01:00
parent 413e840fc7
commit 1d46cd30c3
2 changed files with 2 additions and 2 deletions

View File

@@ -264,7 +264,7 @@ pkg_config() {
fi
export domainname
if [ "${ROOT}" = "/" ] ; then
if [[ -z "${ROOT}" ]] ; then
file="${ROOT}/etc/courier/locals"
if [ ! -f "${file}" ] ; then
echo "localhost" > "${file}";

View File

@@ -265,7 +265,7 @@ pkg_config() {
fi
export domainname
if [ "${ROOT}" = "/" ] ; then
if [[ -z "${ROOT}" ]] ; then
file="${ROOT}/etc/courier/locals"
if [ ! -f "${file}" ] ; then
echo "localhost" > "${file}";