mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-11 00:59:41 +00:00
abuild: create the pkgusers/pkggroups as system users
This commit is contained in:
parent
d66a5ee456
commit
7759f5e5df
@ -485,13 +485,13 @@ mkusers() {
|
||||
if getent group $i >/dev/null; then
|
||||
gopt="-G $i"
|
||||
fi
|
||||
$SUDO adduser -D -H $gopt $i || return 1
|
||||
$SUDO adduser -S -D -H $gopt $i || return 1
|
||||
fi
|
||||
done
|
||||
for i in $pkggroups; do
|
||||
if ! getent group $i >/dev/null; then
|
||||
msg "Creating group $i"
|
||||
$SUDO addgroup $i || return 1
|
||||
$SUDO addgroup -S $i || return 1
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user