------------------------------------------------------------ revno: 13646 revision-id: squid3@treenet.co.nz-20141030143511-2gd8be2x7ao0m1vk parent: squid3@treenet.co.nz-20141017051814-qnjrv9736ghgxgjj author: Santiago Garcia Mantinan committer: Amos Jeffries branch nick: 3.5 timestamp: Thu 2014-10-30 07:35:11 -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-20141030143511-2gd8be2x7ao0m1vk # target_branch: http://bzr.squid-cache.org/bzr/squid3/3.5 # testament_sha1: 17959bdfb6a1c4869b5d837e7ee4aafb7c70086c # timestamp: 2014-10-30 14:49:22 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/3.5 # base_revision_id: squid3@treenet.co.nz-20141017051814-\ # qnjrv9736ghgxgjj # # Begin patch === modified file 'helpers/external_acl/kerberos_ldap_group/cert_tool' --- helpers/external_acl/kerberos_ldap_group/cert_tool 2014-09-13 13:31:49 +0000 +++ helpers/external_acl/kerberos_ldap_group/cert_tool 2014-10-30 14:35:11 +0000 @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/sh # ## Copyright (C) 1996-2014 The Squid Software Foundation and contributors ## @@ -70,9 +70,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