ldap/admin/src/scripts/db2index.in | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit b2ef43edddb4316a479ab57d47a82e607404330a
Author: Noriko Hosoi <nhosoi(a)redhat.com>
Date: Tue Apr 26 14:05:46 2016 -0700
Ticket #48662 - db2index with no attribute args fail.
Description: commit 5a33dc002205d2167c786dd2c05f23218f28341d for #48662
failed to support the case:
db2index -Z SERVERID -n BACKEND
When the command line satisfies the condition, it executes indexing all.
https://fedorahosted.org/389/ticket/48662
Reviewed by wibrown(a)redhat.com (Thank you, William!!)
diff --git a/ldap/admin/src/scripts/db2index.in b/ldap/admin/src/scripts/db2index.in
index ad28757..748c58b 100755
--- a/ldap/admin/src/scripts/db2index.in
+++ b/ldap/admin/src/scripts/db2index.in
@@ -72,8 +72,10 @@ elif [ -z $benameopt ] && [ -z $includeSuffix ]; then
fi
if [ -z $servid ] && [ $# -lt 2 ]; then
print_usage=1
-elif [ "$servid" ] && [ $# -lt 4 ]; then
+elif [ -n "$servid" ] && [ $# -lt 4 ]; then
print_usage=1
+elif [ -n "$servid" ] && [ $# -eq 4 ]; then
+ idxall=1
fi
servid=`normalize_server_id $initfile`