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.
This commit is contained in:
Aloz1 2018-07-14 15:53:13 +10:00
parent 5e258cbc7c
commit b9b9eeac85
1 changed files with 1 additions and 1 deletions

View File

@ -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)