Browse Source

Put /usr/local/bin at front of path

If things get installed by something other than the system package
manager they often end up in /usr/local/bin and they often shadow things
that the system package manager may have installed. By putting this at
the end of the path we don't get the benefit of that shadowing and
instead get whatever the system package manager installed.

This is particularly unhelpful when attempting to use an npm updated by
npm itself which ends up in the local dir.

Change-Id: Ifb58c98162f0064a2ae70868921eea507306ad7e
Clark Boylan 2 years ago
parent
commit
411f392c14
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      manifests/init.pp

+ 1
- 1
manifests/init.pp View File

@@ -23,7 +23,7 @@ class etherpad_lite (
23 23
 
24 24
   # where the modules are, needed to easily install modules later
25 25
   $modules_dir = "${base_install_dir}/etherpad-lite/node_modules"
26
-  $path = "/usr/bin:/bin:/usr/local/bin:${base_install_dir}/etherpad-lite"
26
+  $path = "/usr/local/bin:/usr/bin:/bin:${base_install_dir}/etherpad-lite"
27 27
 
28 28
   user { $ep_user:
29 29
     shell   => '/usr/sbin/nologin',

Loading…
Cancel
Save