From 00c0878b90f0fbbe33f90cad145fefffdaaaa4aa Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Wed, 30 Oct 2013 10:08:08 +0100 Subject: ipatests: Use command -v instead of which in legacy client advice Part of: https://fedorahosted.org/freeipa/ticket/3833 --- ipaserver/advise/plugins/legacy_clients.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipaserver/advise/plugins/legacy_clients.py b/ipaserver/advise/plugins/legacy_clients.py index 1e076bf6..6d17f7ec 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('command -v 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 ;') @@ -362,7 +362,7 @@ class config_redhat_nss_ldap(config_base_legacy_client): self.log.comment('Install required packages via yum') self.log.command('yum install -y wget openssl nss_ldap ' - 'authconfig which\n') + 'authconfig\n') self.configure_ca_cert() -- cgit