Skip to content

Commit 2082a77

Browse files
committed
Test fix for missing Linux libs
1 parent 696ad09 commit 2082a77

File tree

10 files changed

+68
-0
lines changed

10 files changed

+68
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash
2+
3+
#
4+
# mta-server-with-linux-libs.sh
5+
# mta-server64-with-linux-libs.sh
6+
#
7+
# Launch mta-server after adding 'linux-libs' to the library search path
8+
#
9+
10+
if [[ "$0" != *"64"* ]]; then
11+
# 32 bit
12+
LAUNCHER="mta-server"
13+
LINUXLIBS="linux-libs"
14+
else
15+
# 64 bit
16+
LAUNCHER="mta-server64"
17+
LINUXLIBS="x64/linux-libs"
18+
fi
19+
20+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
21+
LIBDIR=$DIR"/"$LINUXLIBS
22+
23+
if [[ "$LD_LIBRARY_PATH" == "" ]]; then
24+
# LD_LIBRARY_PATH is empty
25+
export LD_LIBRARY_PATH=$LIBDIR
26+
elif [[ "$LD_LIBRARY_PATH" != *"$LIBDIR"* ]]; then
27+
# LD_LIBRARY_PATH does not contain LIBDIR
28+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH";"$LIBDIR
29+
fi
30+
31+
# Pass command line arguments to launcher
32+
CMD="$DIR/$LAUNCHER $*"
33+
$CMD
34+
exit $?
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash
2+
3+
#
4+
# mta-server-with-linux-libs.sh
5+
# mta-server64-with-linux-libs.sh
6+
#
7+
# Launch mta-server after adding 'linux-libs' to the library search path
8+
#
9+
10+
if [[ "$0" != *"64"* ]]; then
11+
# 32 bit
12+
LAUNCHER="mta-server"
13+
LINUXLIBS="linux-libs"
14+
else
15+
# 64 bit
16+
LAUNCHER="mta-server64"
17+
LINUXLIBS="x64/linux-libs"
18+
fi
19+
20+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
21+
LIBDIR=$DIR"/"$LINUXLIBS
22+
23+
if [[ "$LD_LIBRARY_PATH" == "" ]]; then
24+
# LD_LIBRARY_PATH is empty
25+
export LD_LIBRARY_PATH=$LIBDIR
26+
elif [[ "$LD_LIBRARY_PATH" != *"$LIBDIR"* ]]; then
27+
# LD_LIBRARY_PATH does not contain LIBDIR
28+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH";"$LIBDIR
29+
fi
30+
31+
# Pass command line arguments to launcher
32+
CMD="$DIR/$LAUNCHER $*"
33+
$CMD
34+
exit $?
1.61 MB
Binary file not shown.
2.11 MB
Binary file not shown.
348 KB
Binary file not shown.
968 KB
Binary file not shown.
1.33 MB
Binary file not shown.
1.96 MB
Binary file not shown.
303 KB
Binary file not shown.
917 KB
Binary file not shown.

0 commit comments

Comments
 (0)