From 33af670cf69c7070f0b95834b6d6e905e652981c Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@tetras-libre.fr> Date: Fri, 28 Sep 2018 15:27:00 +0200 Subject: [PATCH] Wait for ssh key --- postinstall_partage.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/postinstall_partage.sh b/postinstall_partage.sh index 3cc05f3..e3d8f70 100755 --- a/postinstall_partage.sh +++ b/postinstall_partage.sh @@ -48,4 +48,9 @@ line="0 1 1 * * $DIR/registry/scripts/clean.sh > /dev/null 2>&1" (crontab -l; echo "${line}") | crontab - # Copy ssh key to tftp +while [ ! -e "~/.ssh/id_rsa.pub" ] +do + sleep 10 +done + cp ~/.ssh/id_rsa.pub /var/lib/tftpboot/ltsp/id_rsa.pub -- GitLab