Author: nhosoi
Update of /cvs/dirsec/ldapserver/ldap/cm/newinst
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv23090
Modified Files:
Tag: Directory71RtmBranch
setup.patch
Log Message:
[169580] awk used in setup.patch had GNU specific syntax
setup.patch:
Index: setup.patch
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/cm/newinst/Attic/setup.patch,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- setup.patch 28 Sep 2005 22:47:14 -0000 1.1.2.1
+++ setup.patch 29 Sep 2005 20:51:59 -0000 1.1.2.2
@@ -110,7 +110,7 @@
siepid=`getValFromAdminConf "siepid:" "adm.conf"`
suitespotuser=`ls -l $dsconffile | awk '{print $3}'`
suitespotgroup=`ls -l $dsconffile | awk '{print $4}'`
-admindomain=`echo $ldaphost | awk -F. '{print $5 ? $2 "." $3 "."
$4 "." $5: $4 ? $2 "." $3 "." $4 : $3 ? $2 "." $3
: $2 ? $2 : ""}'`
+admindomain=`echo $ldaphost | awk -F. '{if ($5) {print $2 "." $3
"." $4 "." $5} else if ($4) {print $2 "." $3 "."
$4} else if ($3) {print $2 "." $3} else if ($2) {print $2} else {print
""}}'`
if [ "$admindomain" = "" ]; then
admindomain=`domainname`
fi