Fix LEAP 16.0 postInstall script
This commit is contained in:
@@ -59,10 +59,11 @@ local memory = agama.findByID(agama.lshw, 'memory').size;
|
||||
}]
|
||||
},
|
||||
scripts: {
|
||||
pre: [],
|
||||
post: [ {
|
||||
name: 'configure-vagrant',
|
||||
chroot: true,
|
||||
body: |||
|
||||
#!/bin/sh
|
||||
# Configure the insecure Vagrant SSH key
|
||||
mkdir -p /home/vagrant/.ssh
|
||||
curl -o /home/vagrant/.ssh/authorized_keys https://raw.githubusercontent.com/hashicorp/vagrant/master/keys/vagrant.pub
|
||||
@@ -71,7 +72,7 @@ local memory = agama.findByID(agama.lshw, 'memory').size;
|
||||
# Start services
|
||||
systemctl enable sshd
|
||||
# Configure sudo access for the vagrant user
|
||||
cat < EOF > /etc/sudoers/sudoers.d/00_vagrant
|
||||
cat << EOF > /etc/sudoers.d/00_vagrant
|
||||
Defaults:vagrant !requiretty
|
||||
vagrant ALL=(ALL) NOPASSWD: ALL
|
||||
root ALL=(ALL) NOPASSWD: ALL
|
||||
|
||||
Reference in New Issue
Block a user