Commit bf0b28da authored by Natanael Copa's avatar Natanael Copa

abuild: create group before user

parent 41e28f11
......@@ -486,6 +486,12 @@ cleanoldpkg() {
mkusers() {
local i
for i in $pkggroups; do
if ! getent group $i >/dev/null; then
msg "Creating group $i"
$ADDGROUP -S $i || return 1
fi
done
for i in $pkgusers; do
if ! getent passwd $i >/dev/null; then
local gopt=
......@@ -496,12 +502,6 @@ mkusers() {
$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"
$ADDGROUP -S $i || return 1
fi
done
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment