projects
/
grml-live.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
482cb8d
)
GRMLBASE/21-usersetup: use adduser for adding user to group
author
Michael Prokop
<mika@grml.org>
Thu, 28 Jul 2022 08:54:18 +0000
(10:54 +0200)
committer
Michael Prokop
<mika@grml.org>
Thu, 28 Jul 2022 08:54:18 +0000
(10:54 +0200)
adduser >=3.122 no longer supports adding a user to a group via its
addgroup binary (see
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=664869), so let's
invoke adduser instead.
Closes: https://github.com/grml/grml-live/issues/115
etc/grml/fai/config/scripts/GRMLBASE/21-usersetup
patch
|
blob
|
history
diff --git
a/etc/grml/fai/config/scripts/GRMLBASE/21-usersetup
b/etc/grml/fai/config/scripts/GRMLBASE/21-usersetup
index
bc09c1f
..
50d43e6
100755
(executable)
--- a/
etc/grml/fai/config/scripts/GRMLBASE/21-usersetup
+++ b/
etc/grml/fai/config/scripts/GRMLBASE/21-usersetup
@@
-26,7
+26,7
@@
fi
add_user_to_group() {
[ -n "$1" ] || return 1
if grep -q $1 $target/etc/group ; then
- grep "$1:x:.*$USERNAME" $target/etc/group || $ROOTCMD add
group
$USERNAME $1
+ grep "$1:x:.*$USERNAME" $target/etc/group || $ROOTCMD add
user
$USERNAME $1
fi
}