Actions
Bug #6697
closedBug #6548: The rudder-agent profile configuration may override the system MANPATH
Problem with MANPATH on rudder-agent 3.0.5 on RHEL/CentOS
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
On all logins to RHEL/CentOS nodes I get now this error:
manpath: invalid option -- q manpath, version 1.6d usage: manpath [-adfhktwW] [section] [-M path] [-P pager] [-S list] [-m system] [-p string] name ... a : find all matching entries c : do not use cat file d : print gobs of debugging information D : as for -d, but also display the pages f : same as whatis(1) h : print this help message k : same as apropos(1) K : search for a string in all pages t : use troff to format pages for printing w : print location of man page(s) that would be displayed (if no name given: print directories that would be searched) W : as for -w, but display filenames only C file : use `file' as configuration file M path : set search path for manual pages to `path' P pager : use program `pager' to display pages S list : colon separated section list m system : search for alternate system's man pages p string : string tells which preprocessors to run e - [n]eqn(1) p - pic(1) t - tbl(1) g - grap(1) r - refer(1) v - vgrind(1)
The problem actually is here:
# cat /etc/profile.d/rudder-agent.sh # Rudder profile entries, to add the agent to the # PATH and its manpages to the MANPATH # 1 - Add CFEngine binaries to the PATH PATH=${PATH}:/var/rudder/cfengine-community/bin export PATH # 2 - Build a MANPATH with our manpages in it ## If $MANPATH is already defined, use it, or build ## a new one from scratch if it does not if type manpath >/dev/null 2>&1 then MANPATH=$(manpath -q):/opt/rudder/share/man elif [ ! -z "${MANPATH}" ] then MANPATH=${MANPATH}:/opt/rudder/share/man else MANPATH=/opt/rudder/share/man fi export MANPATH
Actions