logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: f9a2d4b6b52664db8a2008bd347af00427380c3a
parent 3f72bf5ab9f78eb9f18c7f48ef63823f8d25ddbf
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat,  5 Feb 2022 17:07:35 +0100

sys-apps/shadow: Fix || die on touch /etc/sub{g,u}id

Diffstat:

Msys-apps/shadow/shadow-4.11.1.ebuild7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/sys-apps/shadow/shadow-4.11.1.ebuild b/sys-apps/shadow/shadow-4.11.1.ebuild @@ -247,10 +247,13 @@ pkg_postinst() { fi fi - [[ ! -f "${EROOT}"/etc/subgid ]] && + if [[ ! -f "${EROOT}"/etc/subgid ]]; then touch "${EROOT}"/etc/subgid || die - [[ ! -f "${EROOT}"/etc/subuid ]] && + fi + + if [[ ! -f "${EROOT}"/etc/subuid ]]; then touch "${EROOT}"/etc/subuid || die + fi einfo "The 'adduser' symlink to 'useradd' has been dropped." }