Skip to content

init: set full path for dpkg command #3

Closed
wants to merge 1 commit into from

2 participants

@mremy
mremy commented Apr 3, 2012

To avoid:
err: //Openvmtools/Exec[install open-vm-modules]: Could not evaluate: 'dpkg' is not executable

@mfournier mfournier commented on the diff Apr 3, 2012
manifests/init.pp
@@ -108,7 +108,7 @@
exec { "install open-vm-modules":
command => "module-assistant --text-mode auto-install open-vm-source",
require => [Class["openvmtools::packages"], Class["buildenv::kernel"]],
- unless => "dpkg -s open-vm-modules-${kernelrelease} | grep '^Status: install ok installed'",
+ unless => "/usr/bin/dpkg -s open-vm-modules-${kernelrelease} | grep '^Status: install ok installed'",
}
@mfournier
mfournier added a note Apr 3, 2012

ça ressemble à la mauvaise solution à un problème de path.
Comment se fait-il que ça fonctionnait jusqu'à maintenant ? Quel est le contexte ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@mremy mremy closed this Apr 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.