From c161ce8236386bfcb5c86b62e3a1fc6bd9c0cd1b Mon Sep 17 00:00:00 2001 From: varac Date: Fri, 26 Feb 2016 13:32:52 +0100 Subject: only create /root/.ssh if it doesnt exist --- vagrant/configure-leap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vagrant') diff --git a/vagrant/configure-leap.sh b/vagrant/configure-leap.sh index 8751c763..08752128 100755 --- a/vagrant/configure-leap.sh +++ b/vagrant/configure-leap.sh @@ -28,7 +28,7 @@ echo -e '\n@log = "./deploy.log"' >> Leapfile if [ ! -e /home/${USER}/.ssh/id_rsa ]; then $SUDO ssh-keygen -f /home/${USER}/.ssh/id_rsa -P '' - mkdir /root/.ssh + [ -d /root/.ssh ] || mkdir /root/.ssh cat /home/${USER}/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys fi -- cgit v1.2.3