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
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
}