Skip to content

Commit

Permalink
fix rsync changing permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
pogobanane authored and Mic92 committed May 15, 2023
1 parent 18f4de9 commit bdfbbd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ if [[ -n ${extra_files-} ]]; then
fi
step Copying extra files
rsync -rlpv -FF -e "ssh -i \"$ssh_key_dir\"/nixos-anywhere -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "$extra_files" "${ssh_connection}:/mnt/"
ssh_ "chmod 755 /mnt" # rsync also changes permissions of /mnt
fi

step Installing NixOS
Expand Down

0 comments on commit bdfbbd5

Please sign in to comment.