Răsfoiți Sursa

[ci skip] fix vagrant after halt (#3691)

Nate 7 ani în urmă
părinte
comite
c821479d5d
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      deployment/vagrant/bootstrap.sh

+ 2 - 1
deployment/vagrant/bootstrap.sh

@@ -12,8 +12,9 @@ if [ ! -e "~/.firstboot" ]; then
   echo "Installing docker"
   curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
   sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
-  sudo apt update
+  sudo apt update -yqq
   sudo apt install -yqq docker-ce
+  sudo usermod -aG docker vagrant
 
   # Setting up passwordless sudo
   echo "vagrant ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee -a /etc/sudoers