From 82479773c5274ace541b83ad4759120bd73448bd Mon Sep 17 00:00:00 2001 From: Chai Feng Date: Sun, 2 Dec 2018 12:12:44 +0800 Subject: [PATCH] fix sudoers --- Vagrantfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 28d81cf..000d185 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -71,8 +71,8 @@ Vagrant.configure('2') do |config| echo "export UFW_DOCKER_AGENT_IMAGE=#{ufw_docker_agent_image}" > /etc/profile.d/ufw-docker.sh echo "export DEBUG=true" >> /etc/profile.d/ufw-docker.sh - echo "Defaults env_keep = UFW_DOCKER_AGENT_IMAGE" > /etc/sudoers.d/98_ufw-docker - echo "Defaults env_keep = DEBUG" >> /etc/sudoers.d/98_ufw-docker + echo "Defaults env_keep += UFW_DOCKER_AGENT_IMAGE" > /etc/sudoers.d/98_ufw-docker + echo "Defaults env_keep += DEBUG" >> /etc/sudoers.d/98_ufw-docker SHELL master.vm.provision "swarm-init", type: 'shell', inline: <<-SHELL