Hi,
Adds which package to the requirements, since older distros do not have
it by default.
Part of: https://fedorahosted.org/freeipa/ticket/3833
--
Tomas Babej
Associate Software Engeneer | Red Hat | Identity Management
RHCE | Brno Site | IRC: tbabej | freeipa.org
From 4bca34f454e71da7cf9770ff2486e42de0650810 Mon Sep 17 00:00:00 2001
From: Tomas Babej <[email protected]>
Date: Wed, 30 Oct 2013 10:08:08 +0100
Subject: [PATCH] ipatests: Add which package to legacy client advice
requirements
Part of: https://fedorahosted.org/freeipa/ticket/3833
---
ipaserver/advise/plugins/legacy_clients.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/ipaserver/advise/plugins/legacy_clients.py b/ipaserver/advise/plugins/legacy_clients.py
index c81fcf8b29d38aa34cadaab030b0e0095e980c5e..e3e8450e5d32512d126544bb8c22f84ada2559a4 100644
--- a/ipaserver/advise/plugins/legacy_clients.py
+++ b/ipaserver/advise/plugins/legacy_clients.py
@@ -52,7 +52,7 @@ class config_base_legacy_client(Advice):
'/etc/openldap/cacerts/ipa.crt\n' % api.env.host)
self.log.comment('Generate hashes for the openldap library')
- self.log.command('which cacertdir_rehash')
+ self.log.command('/usr/bin/which cacertdir_rehash')
self.log.command('if [ $? -ne 0 ] ; then')
self.log.command(' wget "%s" -O cacertdir_rehash ;' % cacertdir_rehash)
self.log.command(' chmod 755 ./cacertdir_rehash ;')
@@ -94,7 +94,7 @@ class config_redhat_sssd_before_1_9(config_base_legacy_client):
self.check_compat_plugin()
self.log.comment('Install required packages via yum')
- self.log.command('yum install -y sssd authconfig wget openssl\n')
+ self.log.command('yum install -y sssd authconfig wget openssl which\n')
self.configure_ca_cert()
@@ -138,7 +138,7 @@ class config_generic_linux_sssd_before_1_9(config_base_legacy_client):
self.log.comment('Install required packages using your system\'s '
'package manager. E.g:')
- self.log.command('apt-get -y install sssd wget openssl\n')
+ self.log.command('apt-get -y install sssd wget openssl which\n')
self.configure_ca_cert()
@@ -189,7 +189,7 @@ class config_redhat_nss_pam_ldapd(config_base_legacy_client):
self.log.comment('Install required packages via yum')
self.log.command('yum install -y wget openssl nss-pam-ldapd pam_ldap '
- 'authconfig\n')
+ 'authconfig which\n')
self.configure_ca_cert()
@@ -235,7 +235,7 @@ class config_generic_linux_nss_pam_ldapd(config_base_legacy_client):
self.log.comment('Install required packages using your system\'s '
'package manager. E.g:')
self.log.command('apt-get -y install wget openssl libnss-ldapd '
- 'libpam-ldapd nslcd\n')
+ 'libpam-ldapd nslcd which\n')
self.configure_ca_cert()
--
1.8.3.1
_______________________________________________
Freeipa-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/freeipa-devel