2018-09-03 16:39:18 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
2018-09-04 13:56:51 +02:00
|
|
|
useradd --uid 1000 --user-group --create-home --shell /bin/bash vagrant
|
2018-09-03 16:39:18 +02:00
|
|
|
usermod -G sudo vagrant
|
|
|
|
umask 0077
|
|
|
|
mkdir /home/vagrant/.ssh
|
|
|
|
wget --output-document=/home/vagrant/.ssh/authorized_keys 'https://raw.githubusercontent.com/hashicorp/vagrant/master/keys/vagrant.pub'
|
|
|
|
chown --recursive vagrant:vagrant /home/vagrant/.ssh
|