summaryrefslogtreecommitdiff
path: root/scripts/vagrant.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vagrant.sh')
-rw-r--r--scripts/vagrant.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/vagrant.sh b/scripts/vagrant.sh
index 900fe9c..f36e2e3 100644
--- a/scripts/vagrant.sh
+++ b/scripts/vagrant.sh
@@ -6,7 +6,8 @@
date > /etc/vagrant_box_build_time
# Installing vagrant key for root
-mkdir -pm 700 /root/.ssh
+mkdir -m 0700 /root/.ssh
+chmod 0700 /root /root/.ssh
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /root/.ssh/authorized_keys
chmod 0600 /root/.ssh/authorized_keys