diff options
author | Noriko Hosoi <nhosoi@redhat.com> | 2005-09-29 20:51:59 +0000 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2005-09-29 20:51:59 +0000 |
commit | 1d420e45e061a0806c265a788fddb853b0063970 (patch) | |
tree | f12e08c6b9a402a5d570b8d6986bbb0fc0add06a | |
parent | f8d0ff48c9572383bdb7c76d074f75870e47fb78 (diff) | |
download | ds-1d420e45e061a0806c265a788fddb853b0063970.tar.gz ds-1d420e45e061a0806c265a788fddb853b0063970.tar.xz ds-1d420e45e061a0806c265a788fddb853b0063970.zip |
[169580] awk used in setup.patch had GNU specific syntax
-rwxr-xr-x | ldap/cm/newinst/setup.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/cm/newinst/setup.patch b/ldap/cm/newinst/setup.patch index b0aee3c8..167be1f2 100755 --- a/ldap/cm/newinst/setup.patch +++ b/ldap/cm/newinst/setup.patch @@ -110,7 +110,7 @@ ldapport=`getValFromAdminConf "ldapPort:" "adm.conf"` 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 |