diff options
author | Tomas Babej <tbabej@redhat.com> | 2013-10-30 10:08:08 +0100 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2013-11-01 15:39:52 +0100 |
commit | 00c0878b90f0fbbe33f90cad145fefffdaaaa4aa (patch) | |
tree | 781b138c77d7a578d899be5049f05278a76c5ee5 /ipaserver/advise | |
parent | 44d1886d39fe2a00ad30736302fbdee67bea66f1 (diff) | |
download | freeipa-00c0878b90f0fbbe33f90cad145fefffdaaaa4aa.tar.gz freeipa-00c0878b90f0fbbe33f90cad145fefffdaaaa4aa.tar.xz freeipa-00c0878b90f0fbbe33f90cad145fefffdaaaa4aa.zip |
ipatests: Use command -v instead of which in legacy client advice
Part of: https://fedorahosted.org/freeipa/ticket/3833
Diffstat (limited to 'ipaserver/advise')
-rw-r--r-- | ipaserver/advise/plugins/legacy_clients.py | 4 |
1 files 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() |