From f58e5d03242cee416ad184d96a8bb541823e4cc9 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 30 Aug 2013 01:53:03 +0200 Subject: fix makefu -> id -u -n --- infest/deploy-ssh-keys | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'infest') diff --git a/infest/deploy-ssh-keys b/infest/deploy-ssh-keys index 1d0587d5..156e2795 100644 --- a/infest/deploy-ssh-keys +++ b/infest/deploy-ssh-keys @@ -1,9 +1,9 @@ #!/bin/sh cd $(dirname $0) -U="${1:-$USER}" +U="${1:-$(id -u -n)}" H="$(grep "^$U" /etc/passwd | cut -d : -f 6)" echo "deploying for user $U to $H/.ssh" mkdir -p $H/.ssh -chown $U $H -chown $U $H/.ssh cp -vr skel/home/.ssh/authorized_keys $H/.ssh +chown $U $H +chown -R $U $H/.ssh -- cgit v1.2.3