fix rsync changing permissions

This commit is contained in:
Pogobanane 2023-02-08 16:21:48 +01:00 committed by Jörg Thalheim
parent 18f4de9f58
commit bdfbbd572a

View File

@ -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