Skip to content

Commit

Permalink
Update install-multi-user.sh
Browse files Browse the repository at this point in the history
Fix the error message given when nix build group already exists.  The existing message gives a misleading solution when the script is typically not downloaded and executed directly.

The solution given in the new message is permitted now by https://github.com/NixOS/nix/pull/4345/files

Fixes: NixOS#4915
  • Loading branch information
MFAshby authored Nov 17, 2023
1 parent 1d86bb4 commit abfd292
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/install-multi-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,8 @@ It seems the build group $NIX_BUILD_GROUP_NAME already exists, but
with the UID $primary_group_id. This script can't really handle
that right now, so I'm going to give up.
You can fix this by editing this script and changing the
NIX_BUILD_GROUP_ID variable near the top to from $NIX_BUILD_GROUP_ID
to $primary_group_id and re-run.
You can fix this by setting NIX_BUILD_GROUP_ID=$primary_group_id in
your shell environment and re-running the installer.
EOF
else
row " Exists" "Yes"
Expand Down

0 comments on commit abfd292

Please sign in to comment.