diff options
| author | Rich Megginson <rmeggins@redhat.com> | 2006-11-21 21:35:56 +0000 |
|---|---|---|
| committer | Rich Megginson <rmeggins@redhat.com> | 2006-11-21 21:35:56 +0000 |
| commit | 4efc4a2ac13943b65f550e007c70265b835e8dd7 (patch) | |
| tree | 6bd0233635869865c4ad43846a2b87436ed6f2d2 /ldap/admin/src/scripts | |
| parent | defcb5dea55bec42e28ef9f2d1a72d87110177a9 (diff) | |
| download | ds-4efc4a2ac13943b65f550e007c70265b835e8dd7.tar.gz ds-4efc4a2ac13943b65f550e007c70265b835e8dd7.tar.xz ds-4efc4a2ac13943b65f550e007c70265b835e8dd7.zip | |
Bug(s) fixed: 216758
Bug Description: Use @libdir@ instead of hardcoded /usr/lib in template-script.in files
Reviewed by: nkinder (Thanks!)
Fix Description: Just replace /usr/lib with @libdir@ in the script template .in files.
Platforms tested: RHEL4
Flag Day: no
Doc impact: no
Diffstat (limited to 'ldap/admin/src/scripts')
| -rwxr-xr-x | ldap/admin/src/scripts/template-bak2db.in | 10 | ||||
| -rwxr-xr-x | ldap/admin/src/scripts/template-db2bak.in | 10 | ||||
| -rwxr-xr-x | ldap/admin/src/scripts/template-db2index.in | 10 | ||||
| -rwxr-xr-x | ldap/admin/src/scripts/template-db2ldif.in | 10 | ||||
| -rwxr-xr-x | ldap/admin/src/scripts/template-ldif2db.in | 10 | ||||
| -rwxr-xr-x | ldap/admin/src/scripts/template-ldif2ldap.in | 8 | ||||
| -rwxr-xr-x | ldap/admin/src/scripts/template-monitor.in | 4 | ||||
| -rwxr-xr-x | ldap/admin/src/scripts/template-restoreconfig.in | 4 | ||||
| -rwxr-xr-x | ldap/admin/src/scripts/template-saveconfig.in | 4 | ||||
| -rwxr-xr-x | ldap/admin/src/scripts/template-start-slapd.in | 4 | ||||
| -rwxr-xr-x | ldap/admin/src/scripts/template-stop-slapd.in | 4 | ||||
| -rwxr-xr-x | ldap/admin/src/scripts/template-suffix2instance.in | 4 | ||||
| -rwxr-xr-x | ldap/admin/src/scripts/template-upgradedb.in | 4 | ||||
| -rw-r--r-- | ldap/admin/src/scripts/template-verify-db.pl.in | 4 | ||||
| -rwxr-xr-x | ldap/admin/src/scripts/template-vlvindex.in | 4 |
15 files changed, 64 insertions, 30 deletions
diff --git a/ldap/admin/src/scripts/template-bak2db.in b/ldap/admin/src/scripts/template-bak2db.in index e0e39408..04d408fe 100755 --- a/ldap/admin/src/scripts/template-bak2db.in +++ b/ldap/admin/src/scripts/template-bak2db.in @@ -1,9 +1,15 @@ #!/bin/sh prefix="{{DS-ROOT}}" -LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +if [ "$prefix" = "/" ] ; then + prefix="" +fi +LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@ +if [ -n "$prefix" ] ; then + LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:@nss_libdir@" +fi export LD_LIBRARY_PATH -SHLIB_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +SHLIB_PATH=$LD_LIBRARY_PATH export SHLIB_PATH if [ $# -lt 1 ] || [ $# -gt 3 ] diff --git a/ldap/admin/src/scripts/template-db2bak.in b/ldap/admin/src/scripts/template-db2bak.in index 73508d3d..a5a42203 100755 --- a/ldap/admin/src/scripts/template-db2bak.in +++ b/ldap/admin/src/scripts/template-db2bak.in @@ -1,9 +1,15 @@ #!/bin/sh prefix="{{DS-ROOT}}" -LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +if [ "$prefix" = "/" ] ; then + prefix="" +fi +LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@ +if [ -n "$prefix" ] ; then + LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:@nss_libdir@" +fi export LD_LIBRARY_PATH -SHLIB_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +SHLIB_PATH=$LD_LIBRARY_PATH export SHLIB_PATH cd {{SERVER-DIR}} diff --git a/ldap/admin/src/scripts/template-db2index.in b/ldap/admin/src/scripts/template-db2index.in index b13c7965..af7b6ebb 100755 --- a/ldap/admin/src/scripts/template-db2index.in +++ b/ldap/admin/src/scripts/template-db2index.in @@ -1,9 +1,15 @@ #!/bin/sh prefix="{{DS-ROOT}}" -LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +if [ "$prefix" = "/" ] ; then + prefix="" +fi +LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@ +if [ -n "$prefix" ] ; then + LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:@nss_libdir@" +fi export LD_LIBRARY_PATH -SHLIB_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +SHLIB_PATH=$LD_LIBRARY_PATH export SHLIB_PATH cd {{SERVER-DIR}} diff --git a/ldap/admin/src/scripts/template-db2ldif.in b/ldap/admin/src/scripts/template-db2ldif.in index 846655ad..86aea93b 100755 --- a/ldap/admin/src/scripts/template-db2ldif.in +++ b/ldap/admin/src/scripts/template-db2ldif.in @@ -1,9 +1,15 @@ #!/bin/sh prefix="{{DS-ROOT}}" -LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +if [ "$prefix" = "/" ] ; then + prefix="" +fi +LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@ +if [ -n "$prefix" ] ; then + LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:@nss_libdir@" +fi export LD_LIBRARY_PATH -SHLIB_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +SHLIB_PATH=$LD_LIBRARY_PATH export SHLIB_PATH cd {{SERVER-DIR}} diff --git a/ldap/admin/src/scripts/template-ldif2db.in b/ldap/admin/src/scripts/template-ldif2db.in index 65a2e215..0a610399 100755 --- a/ldap/admin/src/scripts/template-ldif2db.in +++ b/ldap/admin/src/scripts/template-ldif2db.in @@ -1,9 +1,15 @@ #!/bin/sh prefix="{{DS-ROOT}}" -LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +if [ "$prefix" = "/" ] ; then + prefix="" +fi +LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@ +if [ -n "$prefix" ] ; then + LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:@nss_libdir@" +fi export LD_LIBRARY_PATH -SHLIB_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +SHLIB_PATH=$LD_LIBRARY_PATH export SHLIB_PATH cd {{SERVER-DIR}} diff --git a/ldap/admin/src/scripts/template-ldif2ldap.in b/ldap/admin/src/scripts/template-ldif2ldap.in index 0983396a..1a98e3ad 100755 --- a/ldap/admin/src/scripts/template-ldif2ldap.in +++ b/ldap/admin/src/scripts/template-ldif2ldap.in @@ -1,10 +1,14 @@ #!/bin/sh prefix="{{DS-ROOT}}" +if [ "$prefix" = "/" ] ; then + prefix="" +fi + PATH=$prefix@ldapsdk_bindir@:@ldapsdk_bindir@ -LD_LIBRARY_PATH=$prefix@ldapsdk_libdir@:@ldapsdk_libdir@:$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +LD_LIBRARY_PATH=$prefix@ldapsdk_libdir@:@ldapsdk_libdir@:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@ export LD_LIBRARY_PATH -SHLIB_PATH=$prefix@ldapsdk_libdir@:@ldapsdk_libdir@:$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +SHLIB_PATH=$prefix@ldapsdk_libdir@:@ldapsdk_libdir@:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@ export SHLIB_PATH ldapmodify -a -p {{SERVER-PORT}} -D "$1" -w "$2" -f $3 diff --git a/ldap/admin/src/scripts/template-monitor.in b/ldap/admin/src/scripts/template-monitor.in index 487aac49..e4683aee 100755 --- a/ldap/admin/src/scripts/template-monitor.in +++ b/ldap/admin/src/scripts/template-monitor.in @@ -1,9 +1,9 @@ #!/bin/sh PATH=$prefix@ldapsdk_bindir@:@ldapsdk_bindir@ -LD_LIBRARY_PATH=$prefix@ldapsdk_libdir@:@ldapsdk_libdir@:$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +LD_LIBRARY_PATH=$prefix@ldapsdk_libdir@:@ldapsdk_libdir@:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@ export LD_LIBRARY_PATH -SHLIB_PATH=$prefix@ldapsdk_libdir@:@ldapsdk_libdir@:$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +SHLIB_PATH=$prefix@ldapsdk_libdir@:@ldapsdk_libdir@:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@ export SHLIB_PATH if [ "x$1" != "x" ]; diff --git a/ldap/admin/src/scripts/template-restoreconfig.in b/ldap/admin/src/scripts/template-restoreconfig.in index 9f7be2d2..90ac5960 100755 --- a/ldap/admin/src/scripts/template-restoreconfig.in +++ b/ldap/admin/src/scripts/template-restoreconfig.in @@ -1,9 +1,9 @@ #!/bin/sh prefix="{{DS-ROOT}}" -LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@ export LD_LIBRARY_PATH -SHLIB_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +SHLIB_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@ export SHLIB_PATH cd {{SERVER-DIR}} diff --git a/ldap/admin/src/scripts/template-saveconfig.in b/ldap/admin/src/scripts/template-saveconfig.in index 8d9f7c11..501d077a 100755 --- a/ldap/admin/src/scripts/template-saveconfig.in +++ b/ldap/admin/src/scripts/template-saveconfig.in @@ -1,9 +1,9 @@ #!/bin/sh prefix="{{DS-ROOT}}" -LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@ export LD_LIBRARY_PATH -SHLIB_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +SHLIB_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@ export SHLIB_PATH cd {{SERVER-DIR}} diff --git a/ldap/admin/src/scripts/template-start-slapd.in b/ldap/admin/src/scripts/template-start-slapd.in index b408fd8f..2b8774e4 100755 --- a/ldap/admin/src/scripts/template-start-slapd.in +++ b/ldap/admin/src/scripts/template-start-slapd.in @@ -1,9 +1,9 @@ #!/bin/sh prefix="{{DS-ROOT}}" -LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@ export LD_LIBRARY_PATH -SHLIB_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +SHLIB_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@ export SHLIB_PATH # Script that starts the ns-slapd server. diff --git a/ldap/admin/src/scripts/template-stop-slapd.in b/ldap/admin/src/scripts/template-stop-slapd.in index f7c3e9ae..46b2e416 100755 --- a/ldap/admin/src/scripts/template-stop-slapd.in +++ b/ldap/admin/src/scripts/template-stop-slapd.in @@ -1,9 +1,9 @@ #!/bin/sh prefix="{{DS-ROOT}}" -LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@ export LD_LIBRARY_PATH -SHLIB_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +SHLIB_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@ export SHLIB_PATH # Script that stops the ns-slapd server. diff --git a/ldap/admin/src/scripts/template-suffix2instance.in b/ldap/admin/src/scripts/template-suffix2instance.in index 1a2ce325..a03a82d7 100755 --- a/ldap/admin/src/scripts/template-suffix2instance.in +++ b/ldap/admin/src/scripts/template-suffix2instance.in @@ -1,9 +1,9 @@ #!/bin/sh prefix="{{DS-ROOT}}" -LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@ export LD_LIBRARY_PATH -SHLIB_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +SHLIB_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@ export SHLIB_PATH cd {{SERVER-DIR}} diff --git a/ldap/admin/src/scripts/template-upgradedb.in b/ldap/admin/src/scripts/template-upgradedb.in index 621d562c..30a2f53c 100755 --- a/ldap/admin/src/scripts/template-upgradedb.in +++ b/ldap/admin/src/scripts/template-upgradedb.in @@ -1,9 +1,9 @@ #!/bin/sh prefix="{{DS-ROOT}}" -LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@ export LD_LIBRARY_PATH -SHLIB_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +SHLIB_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@ export SHLIB_PATH cd {{SERVER-DIR}} diff --git a/ldap/admin/src/scripts/template-verify-db.pl.in b/ldap/admin/src/scripts/template-verify-db.pl.in index 242129de..3eccbc3a 100644 --- a/ldap/admin/src/scripts/template-verify-db.pl.in +++ b/ldap/admin/src/scripts/template-verify-db.pl.in @@ -114,8 +114,8 @@ my $dbdirs = getDbDir("."); my $prefix = "{{DS-ROOT}}"; $ENV{'PATH'} = "$prefix@db_bindir@:$prefix/usr/bin:@db_bindir@:/usr/bin"; -$ENV{'LD_LIBRARY_PATH'} = "@db_libdir@:/usr/lib"; -$ENV{'SHLIB_PATH'} = "@db_libdir@:/usr/lib"; +$ENV{'LD_LIBRARY_PATH'} = "@db_libdir@:@libdir@"; +$ENV{'SHLIB_PATH'} = "@db_libdir@:@libdir@"; for (my $i = 0; $i < @$dbdirs; $i++) { diff --git a/ldap/admin/src/scripts/template-vlvindex.in b/ldap/admin/src/scripts/template-vlvindex.in index 472fc15a..ae9a5024 100755 --- a/ldap/admin/src/scripts/template-vlvindex.in +++ b/ldap/admin/src/scripts/template-vlvindex.in @@ -1,9 +1,9 @@ #!/bin/sh prefix="{{DS-ROOT}}" -LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@ export LD_LIBRARY_PATH -SHLIB_PATH=$prefix@nss_libdir@:$prefix/usr/lib:@nss_libdir@ +SHLIB_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@ export SHLIB_PATH cd {{SERVER-DIR}} |
