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
Updated by Vincent MEMBRÉ over 9 years ago
- Related to Bug #6548: The rudder-agent profile configuration may override the system MANPATH added
Updated by Vincent MEMBRÉ over 9 years ago
This bug is related to #6548, we need to remove -q option and replace it by "2> /dev/null" to remove the warning
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 3.0.6 to 2.10.15
Updated by Vincent MEMBRÉ over 9 years ago
- Status changed from New to In progress
- Assignee changed from Matthieu CERDA to Vincent MEMBRÉ
Updated by Vincent MEMBRÉ over 9 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Vincent MEMBRÉ to Matthieu CERDA
- Pull Request set to https://github.com/Normation/rudder-packages/pull/675
Updated by Vincent MEMBRÉ over 9 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder-packages|af5120c4c4e513e374752960638d1ab366ce70eb.
Updated by Matthieu CERDA over 9 years ago
Applied in changeset rudder-packages|cfe8942297798cc2dcc2960d8eebd0270285c0f4.
Updated by Vincent MEMBRÉ over 9 years ago
- Related to deleted (Bug #6548: The rudder-agent profile configuration may override the system MANPATH)
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.10.15 to 2.10.14
Updated by Vincent MEMBRÉ over 9 years ago
- Status changed from Pending release to Released
Actions