You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-emulation/ganeti/files/ganeti-2.11-useradd.patch

18 lines
850 B

diff --git a/Makefile.am b/Makefile.am
index 7666d18..a8b6396 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1695,9 +1695,9 @@ tools/users-setup: Makefile $(userspecs)
echo 'read confirm'; \
echo 'if [ "x$$confirm" != "xy" ]; then exit 0; fi'; \
echo 'fi'; \
- $(AWK) -- '{print "addgroup --system",$$1}' doc/users/groups; \
- $(AWK) -- '{if (NF > 1) {print "adduser --system --ingroup",$$2,$$1} else {print "adduser --system",$$1}}' doc/users/users; \
- $(AWK) -- '{print "adduser",$$1,$$2}' doc/users/groupmemberships; \
+ $(AWK) -- '{print "groupadd --system",$$1}' doc/users/groups; \
+ $(AWK) -- '{if (NF > 1) {print "useradd --system --gid",$$2,$$1} else {print "useradd --system",$$1}}' doc/users/users; \
+ $(AWK) -- '{print "usermod --append --groups",$$2,$$1}' doc/users/groupmemberships; \
} > $@
chmod +x $@