summaryrefslogtreecommitdiffstats
path: root/ldap/admin/src/scripts/template-db2ldif
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2007-02-21 21:22:08 +0000
committerNoriko Hosoi <nhosoi@redhat.com>2007-02-21 21:22:08 +0000
commit4e73e76b8d964ff950bd3c1d105714a18bfd8383 (patch)
tree0905287520172c5af80a5c6805d7cfbf37ba9a5e /ldap/admin/src/scripts/template-db2ldif
parentfa05437fb16b35caa6337c0d216466a374436a47 (diff)
downloadds-4e73e76b8d964ff950bd3c1d105714a18bfd8383.tar.gz
ds-4e73e76b8d964ff950bd3c1d105714a18bfd8383.tar.xz
ds-4e73e76b8d964ff950bd3c1d105714a18bfd8383.zip
Resolves: 229576
Summary: clean up template-scriptname which is derived from template-scriptname.in
Diffstat (limited to 'ldap/admin/src/scripts/template-db2ldif')
-rw-r--r--ldap/admin/src/scripts/template-db2ldif41
1 files changed, 0 insertions, 41 deletions
diff --git a/ldap/admin/src/scripts/template-db2ldif b/ldap/admin/src/scripts/template-db2ldif
deleted file mode 100644
index 505aa949..00000000
--- a/ldap/admin/src/scripts/template-db2ldif
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-
-prefix="{{DS-ROOT}}"
-LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
-export LD_LIBRARY_PATH
-SHLIB_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
-export SHLIB_PATH
-
-cd {{SERVERBIN-DIR}}
-if [ "$#" -lt 2 ];
-then
- echo "Usage: db2ldif {-n backend_instance}* | {-s includesuffix}*"
- echo " [{-x excludesuffix}*] [-a outputfile]"
- echo " [-N] [-r] [-C] [-u] [-U] [-m] [-M] [-1]"
- echo "Note: either \"-n backend_instance\" or \"-s includesuffix\" is required."
- exit 1
-fi
-
-set_ldif=0
-ldif_file="mydummy"
-for arg in "$@"
-do
- if [ "$arg" = '-a' ];
- then
- set_ldif=1
- elif [ $set_ldif -eq 1 ];
- then
- ldif_file=$arg
- set_ldif=2
- fi
-done
-if [ $ldif_file = "mydummy" ]
-then
- ldif_file={{LDIF-DIR}}/laputa-`date +%Y_%m_%d_%H%M%S`.ldif
-fi
-if [ $set_ldif -eq 2 ]
-then
-./ns-slapd db2ldif -D {{CONFIG-DIR}} "$@"
-else
-./ns-slapd db2ldif -D {{CONFIG-DIR}} -a $ldif_file "$@"
-fi