ipatests: Use command -v instead of which in legacy client advice

Part of: https://fedorahosted.org/freeipa/ticket/3833
This commit is contained in:
Tomas Babej 2013-10-30 10:08:08 +01:00 committed by Petr Viktorin
parent 44d1886d39
commit 00c0878b90

View File

@ -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()