From 1ac2360c5e14f73d8ef31db439dbd589a9db5cbb Mon Sep 17 00:00:00 2001 From: nixpig <143995476+nixpig@users.noreply.github.com> Date: Sun, 8 Dec 2024 09:09:45 +0000 Subject: [PATCH] chore: tidy up vagrant provision a little --- Vagrantfile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 781d910..c7b083e 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -10,12 +10,14 @@ Vagrant.configure("2") do |config| config.vm.provision "shell", inline: <<-SHELL - apt-get update \ - && apt-get install -y ca-certificates curl + set -e -x -o pipefail - install -m 0755 -d /etc/apt/keyrings \ - && curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc \ - && chmod a+r /etc/apt/keyrings/docker.asc + apt-get update + apt-get install -y ca-certificates curl + + install -m 0755 -d /etc/apt/keyrings + curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc + chmod a+r /etc/apt/keyrings/docker.asc echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ @@ -29,7 +31,7 @@ Vagrant.configure("2") do |config| tar -C /usr/local -xzf go.tar.gz echo "PATH=$PATH:/usr/local/go/bin" >> /etc/environment - groupadd docker + groupadd docker || echo "Group already exists" gpasswd -a vagrant docker service docker restart SHELL