diff options
author | varac <varacanero@zeromail.org> | 2016-02-26 13:32:52 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-02-26 13:32:52 +0100 |
commit | c161ce8236386bfcb5c86b62e3a1fc6bd9c0cd1b (patch) | |
tree | f5b44162f5dfb78322209ccabd98022187856d9c /vagrant/configure-leap.sh | |
parent | f3575cbf80312bd29da9c3c9756f2d5f276be5ed (diff) |
only create /root/.ssh if it doesnt exist
Diffstat (limited to 'vagrant/configure-leap.sh')
-rwxr-xr-x | vagrant/configure-leap.sh | 2 |
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 |