From 6706ca174f028384a15e61ebf246d749989b6e0a Mon Sep 17 00:00:00 2001 From: Mark Carey <796+kogent@users.noreply.github.com> Date: Fri, 10 Nov 2017 11:26:20 -0800 Subject: [PATCH] fix README.md fix sudoers entry to reflect the command actually executed by the plugin --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2caf063..154119d 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ This disables vagrant-hostsupdater from running on **suspend** and **halt**. To allow vagrant to automatically update the hosts file without asking for a sudo password, add the following snippet to a new sudoers file include, i.e. `sudo visudo -f /etc/sudoers.d/vagrant_hostsupdater`: # Allow passwordless startup of Vagrant with vagrant-hostsupdater. - Cmnd_Alias VAGRANT_HOSTS_ADD = /bin/sh -c echo "*" >> /etc/hosts + Cmnd_Alias VAGRANT_HOSTS_ADD = /bin/sh -c 'echo "*" >> /etc/hosts' Cmnd_Alias VAGRANT_HOSTS_REMOVE = /usr/bin/env sed -i -e /*/ d /etc/hosts %sudo ALL=(root) NOPASSWD: VAGRANT_HOSTS_ADD, VAGRANT_HOSTS_REMOVE