From b9b9eeac852d5ec92a19a7dab86af309734926df Mon Sep 17 00:00:00 2001 From: Aloz1 Date: Sat, 14 Jul 2018 15:53:13 +1000 Subject: [PATCH] Void requires root access to check service status Service status check was failing because it was not being run as root. This resulted in vagrant thinking the service was not running, hence it would always try to start nfs rather than updating exports. --- plugins/hosts/void/cap/nfs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hosts/void/cap/nfs.rb b/plugins/hosts/void/cap/nfs.rb index 259fc776b..1a5c4999c 100644 --- a/plugins/hosts/void/cap/nfs.rb +++ b/plugins/hosts/void/cap/nfs.rb @@ -3,7 +3,7 @@ module VagrantPlugins module Cap class NFS def self.nfs_check_command(env) - "/usr/bin/sv status nfs-server" + "sudo /usr/bin/sv status nfs-server" end def self.nfs_start_command(env)