------------------------------------------------------------ revno: 13182 revision-id: squid3@treenet.co.nz-20141030150059-4axyu368gypa4bja parent: squid3@treenet.co.nz-20141030045829-c8w04evwsnpuw2u7 author: Santiago Garcia Mantinan committer: Amos Jeffries branch nick: 3.4 timestamp: Thu 2014-10-30 08:00:59 -0700 message: kerberos_ldap_group/cert_tool: Remove ksh dependency Shell scripts published with Squid should be POSIX neutral. Replace the ksh-specific syntax with portable POSIX shell. ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20141030150059-4axyu368gypa4bja # target_branch: http://bzr.squid-cache.org/bzr/squid3/3.4 # testament_sha1: 2f09accbdd9fbf2261b52cd81cdc0b77d4a8ff73 # timestamp: 2014-10-30 15:03:32 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/3.4 # base_revision_id: squid3@treenet.co.nz-20141030045829-\ # c8w04evwsnpuw2u7 # # Begin patch === modified file 'helpers/external_acl/kerberos_ldap_group/cert_tool' --- helpers/external_acl/kerberos_ldap_group/cert_tool 2010-08-13 10:17:20 +0000 +++ helpers/external_acl/kerberos_ldap_group/cert_tool 2014-10-30 15:00:59 +0000 @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/sh # # ----------------------------------------------------------------------------- # @@ -64,9 +64,9 @@ # Create database for Sun ldap and pem file for Openldap # rm ${server}_[0-9]*.pem 2>/dev/null -let i=0 - ls ${server}_[0-9]*.cert | while read file; do - let i=i+1 +i=0 +ls ${server}_[0-9]*.cert | while read file; do + i=$(($i+1)) cat $file >> ${server}_$i.pem CA=`openssl x509 -noout -text -in ${server}_$i.pem | grep -i "CA:.*true"` if [ -n "$CA" ]; then