Put /usr/local/bin first in paths
Reorder the exec paths so that /usr/local/bin is checked before /usr/bin and /bin. The newer NPM-installed node.js is at /usr/local/bin/node while the older distro-packaged node.js is at /usr/bin/node. Change-Id: I3e13ea1e9c5efed6e1a3ab489e70918f6b6a1768
This commit is contained in:
parent
dbd2643937
commit
b3463290eb
|
@ -236,7 +236,7 @@ class openstackid (
|
|||
}
|
||||
|
||||
exec { 'deploy-site':
|
||||
path => '/usr/bin:/bin:/usr/local/bin',
|
||||
path => '/usr/local/bin:/usr/bin:/bin',
|
||||
command => '/opt/deploy/deploy.sh init openstackid',
|
||||
onlyif => '/opt/deploy/deploy.sh status openstackid | grep N/A',
|
||||
logoutput => on_failure,
|
||||
|
@ -256,7 +256,7 @@ class openstackid (
|
|||
}
|
||||
|
||||
exec { 'update-site':
|
||||
path => '/usr/bin:/bin:/usr/local/bin',
|
||||
path => '/usr/local/bin:/usr/bin:/bin',
|
||||
command => '/opt/deploy/deploy.sh update openstackid',
|
||||
onlyif => '/opt/deploy/deploy.sh status openstackid | grep UPDATE',
|
||||
logoutput => on_failure,
|
||||
|
|
Loading…
Reference in New Issue