summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xvagrant/configure-leap.sh2
1 files changed, 1 insertions, 1 deletions
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