diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-04-24 09:01:59 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-04-24 09:01:59 +0000 |
commit | bf0b28da6b4d69a653cb76e9e45618cccb2e0889 (patch) | |
tree | 2098e54bda4aa1b10283135adaaf8895afa42490 /abuild.in | |
parent | 41e28f11ba2d0367375858fa754519a66f2e056a (diff) | |
download | abuild-bf0b28da6b4d69a653cb76e9e45618cccb2e0889.tar.gz abuild-bf0b28da6b4d69a653cb76e9e45618cccb2e0889.tar.bz2 abuild-bf0b28da6b4d69a653cb76e9e45618cccb2e0889.tar.xz abuild-bf0b28da6b4d69a653cb76e9e45618cccb2e0889.zip |
abuild: create group before user
Diffstat (limited to 'abuild.in')
-rwxr-xr-x | abuild.in | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 } |