abuild: create the pkgusers/pkggroups as system users

This commit is contained in:
Natanael Copa 2012-02-13 15:09:38 +00:00
parent d66a5ee456
commit 7759f5e5df

View File

@ -485,13 +485,13 @@ mkusers() {
if getent group $i >/dev/null; then if getent group $i >/dev/null; then
gopt="-G $i" gopt="-G $i"
fi fi
$SUDO adduser -D -H $gopt $i || return 1 $SUDO adduser -S -D -H $gopt $i || return 1
fi fi
done done
for i in $pkggroups; do for i in $pkggroups; do
if ! getent group $i >/dev/null; then if ! getent group $i >/dev/null; then
msg "Creating group $i" msg "Creating group $i"
$SUDO addgroup $i || return 1 $SUDO addgroup -S $i || return 1
fi fi
done done
} }