mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
etc: guix-install.sh: Remove dependency on "which".
* etc/guix-install.sh: Remove dependency on "which". Change-Id: I2f93ade98f92ab28b4657fa213b9164a148437e6 Signed-off-by: jgart <jgart@dismail.de>
This commit is contained in:
parent
5b307267d6
commit
e28156c212
1 changed files with 2 additions and 3 deletions
|
@ -68,7 +68,6 @@ REQUIRE=(
|
||||||
"wget"
|
"wget"
|
||||||
"gpg"
|
"gpg"
|
||||||
"grep"
|
"grep"
|
||||||
"which"
|
|
||||||
"sed"
|
"sed"
|
||||||
"sort"
|
"sort"
|
||||||
"getent"
|
"getent"
|
||||||
|
@ -458,11 +457,11 @@ create_account()
|
||||||
if id "$user" &>/dev/null; then
|
if id "$user" &>/dev/null; then
|
||||||
_msg_info "user '$user' is already in the system, reset"
|
_msg_info "user '$user' is already in the system, reset"
|
||||||
usermod -g "$group" -G "$supplementary_groups" \
|
usermod -g "$group" -G "$supplementary_groups" \
|
||||||
-d /var/empty -s "$(which nologin)" \
|
-d /var/empty -s "$(command -v nologin)" \
|
||||||
-c "$comment" "$user"
|
-c "$comment" "$user"
|
||||||
else
|
else
|
||||||
useradd -g "$group" -G "$supplementary_groups" \
|
useradd -g "$group" -G "$supplementary_groups" \
|
||||||
-d /var/empty -s "$(which nologin)" \
|
-d /var/empty -s "$(command -v nologin)" \
|
||||||
-c "$comment" --system "$user"
|
-c "$comment" --system "$user"
|
||||||
_msg_pass "user added <$user>"
|
_msg_pass "user added <$user>"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue