diff options
Diffstat (limited to 'post-install.sh')
-rwxr-xr-x | post-install.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/post-install.sh b/post-install.sh index 9a99965..1950539 100755 --- a/post-install.sh +++ b/post-install.sh @@ -15,9 +15,7 @@ home="$(sed -rn '0,/^[^:]*:[^:]*:1000:[^:]*:[^:]*:([^:]*):.*/s//\1/p' /etc/passw test -d "$home/.ssh" || mkdir -m 0700 "$home/.ssh" # TODO: make something more generic -cat > "$home/.ssh/authorized_keys" << EOF -ssh-rsa ... -EOF +cp /cdrom/preseed/authorized_keys "$home/.ssh/authorized_keys" chown -R "$user:$user" "$home/.ssh" chmod -R og-rwx "$home/.ssh" |