From 00e792cd46cec5020bd2fca6fe69d66845d1d88e Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sun, 22 Nov 2020 02:09:01 -0700 Subject: [PATCH] shlib.sh: use configured PATH to find commands If Config.pm sets PATH, then be sure to use it to find the full path to any needed command binaries. Signed-off-by: Kyle J. McKay --- shlib.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/shlib.sh b/shlib.sh index d0af51f..aca8ac1 100644 --- a/shlib.sh +++ b/shlib.sh @@ -114,6 +114,7 @@ get_girocco_config_var_list() ( # var_xfsz_err Shell error code when child dies from SIGXFSZ _cfg_vars="$(get_girocco_config_pm_var_list)" eval "$_cfg_vars" + [ -z "$cfg_path" ] || { PATH="$cfg_path" && export PATH; } [ "$1" = "varonly" ] || printf '%s\n' "$_cfg_vars" printf 'var_group=%s\n' "${cfg_owning_group:-$(id -gn)}" perl - "$var_group" "$cfg_mirror_user" "$cfg_cgi_user" <<-'PERLPROG' -- 2.11.4.GIT