Skip to content

Commit

Permalink
Merge pull request #6980 from virusdave/patch-1
Browse files Browse the repository at this point in the history
Set `HOME` var to `root`'s home when running `nix-store` as `root`
  • Loading branch information
thufschmitt authored Sep 5, 2022
2 parents df5159e + a2b7baa commit 089f584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install-multi-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ EOF
fi

_sudo "to load data for the first time in to the Nix Database" \
"$NIX_INSTALLED_NIX/bin/nix-store" --load-db < ./.reginfo
HOME="$ROOT_HOME" "$NIX_INSTALLED_NIX/bin/nix-store" --load-db < ./.reginfo

echo " Just finished getting the nix database ready."
)
Expand Down

0 comments on commit 089f584

Please sign in to comment.