mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
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:
@@ -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}";
|
||||
@@ -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}";
|
||||
Reference in New Issue
Block a user