浏览代码

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

Nate 7 年之前
父节点
当前提交
c821479d5d
共有 1 个文件被更改,包括 2 次插入1 次删除
  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