summaryrefslogtreecommitdiff
path: root/vagrant/configure-leap.sh
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-02-26 13:32:52 +0100
committervarac <varacanero@zeromail.org>2016-02-26 13:32:52 +0100
commitc161ce8236386bfcb5c86b62e3a1fc6bd9c0cd1b (patch)
treef5b44162f5dfb78322209ccabd98022187856d9c /vagrant/configure-leap.sh
parentf3575cbf80312bd29da9c3c9756f2d5f276be5ed (diff)
only create /root/.ssh if it doesnt exist
Diffstat (limited to 'vagrant/configure-leap.sh')
-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