From 411f392c147fa196d87b920c1e9bf37f1d1a1dd7 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 14 Nov 2016 18:10:24 -0800 Subject: [PATCH] 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 --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 88a69f6..0739e77 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -23,7 +23,7 @@ class etherpad_lite ( # where the modules are, needed to easily install modules later $modules_dir = "${base_install_dir}/etherpad-lite/node_modules" - $path = "/usr/bin:/bin:/usr/local/bin:${base_install_dir}/etherpad-lite" + $path = "/usr/local/bin:/usr/bin:/bin:${base_install_dir}/etherpad-lite" user { $ep_user: shell => '/usr/sbin/nologin',