aboutsummaryrefslogtreecommitdiffstats
path: root/post-install.sh
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2013-10-07 07:31:55 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 04:27:28 +0200
commit7311edb67891fc8a74ccf75677ee4c6a20634bb7 (patch)
tree83449d2ede993c46a480694f98a69e6a48825fae /post-install.sh
parent6ffad46704d417b7a84cd5088849d77964f99580 (diff)
wibble
Diffstat (limited to 'post-install.sh')
-rwxr-xr-xpost-install.sh4
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"