diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2011-01-07 09:01:29 -0600 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2011-01-07 09:01:29 -0600 |
commit | 87ead86640924ff5557be1dd63de66cf11aa1e54 (patch) | |
tree | 2268e191875d000c6127a592bdc095c5f84353c0 | |
parent | f384258af81136eacc85cf4adb01db34667600ab (diff) | |
download | bcfg2-87ead86640924ff5557be1dd63de66cf11aa1e54.tar.gz bcfg2-87ead86640924ff5557be1dd63de66cf11aa1e54.tar.bz2 bcfg2-87ead86640924ff5557be1dd63de66cf11aa1e54.zip |
doc: Fix rpm paths in group probe
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
-rw-r--r-- | doc/server/plugins/probes/group.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/server/plugins/probes/group.txt b/doc/server/plugins/probes/group.txt index f529b8b3e..2fce9a9c5 100644 --- a/doc/server/plugins/probes/group.txt +++ b/doc/server/plugins/probes/group.txt @@ -52,15 +52,15 @@ Probe used to dynamically set client groups based on OS/distro. # redhat based if [ -x /bin/rpm ]; then OUTPUT="${OUTPUT}\ngroup:rpm" - OS_GROUP=`bin/rpm -q --qf "%{NAME}" --whatprovides redhat-release | sed 's/-release.*//' | tr '[A-Z]' '[a-z]'` - REDHAT_VERSION=`bin/rpm -q --qf "%{VERSION}" --whatprovides redhat-release` + OS_GROUP=`/bin/rpm -q --qf "%{NAME}" --whatprovides redhat-release | sed 's/-release.*//' | tr '[A-Z]' '[a-z]'` + REDHAT_VERSION=`/bin/rpm -q --qf "%{VERSION}" --whatprovides redhat-release` case "$OS_GROUP" in "centos" | "fedora") OUTPUT="${OUTPUT}\ngroup:${OS_GROUP}" OUTPUT="${OUTPUT}\ngroup:${OS_GROUP}-${REDHAT_VERSION}" ;; "redhat") - REDHAT_RELEASE=`bin/rpm -q --qf "%{RELEASE}" --whatprovides redhat-release| cut -d. -f1` + REDHAT_RELEASE=`/bin/rpm -q --qf "%{RELEASE}" --whatprovides redhat-release| cut -d. -f1` OUTPUT="${OUTPUT}\ngroup:${OS_GROUP}" OUTPUT="${OUTPUT}\ngroup:${OS_GROUP}-${REDHAT_VERSION}" OUTPUT="${OUTPUT}\ngroup:${OS_GROUP}-${REDHAT_RELEASE}" |