Skip to content

Commit

Permalink
Don't overwrite already-copied files on install
Browse files Browse the repository at this point in the history
Fixes #6679
  • Loading branch information
iFreilicht committed Jan 15, 2023
1 parent 2e41ae9 commit 250c118
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 @@ -805,7 +805,7 @@ install_from_extracted_nix() {
cd "$EXTRACTED_NIX_PATH"

_sudo "to copy the basic Nix files to the new store at $NIX_ROOT/store" \
cp -RPp ./store/* "$NIX_ROOT/store/"
cp -RPnp ./store/* "$NIX_ROOT/store/"

_sudo "to make the new store non-writable at $NIX_ROOT/store" \
chmod -R ugo-w "$NIX_ROOT/store/"
Expand Down

0 comments on commit 250c118

Please sign in to comment.