Split up bootstrap script

This commit is contained in:
2020-12-13 16:38:56 +00:00
parent db1fc29638
commit 2df38382bb
2 changed files with 13 additions and 1 deletions

2
Vagrantfile vendored
View File

@@ -69,5 +69,5 @@ Vagrant.configure("2") do |config|
# apt-get update # apt-get update
# apt-get install -y apache2 # apt-get install -y apache2
# SHELL # SHELL
config.vm.provision "shell", path: "./bootstrap.sh" config.vm.provision "shell", path: "./startup.sh"
end end

12
startup.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
pacman -Syu --noconfirm
# Force the locale
echo "LC_ALL=en_GB.UTF-8" >> /etc/default/locale
locale-gen en_US.UTF-8
# Set the hostname
echo "scarif.space" > /etc/hostname
chmod +x /opt/scarif/bootstrap.sh