11 lines
323 B
Plaintext
11 lines
323 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
# Sets BASEDIR for teamspeak3-server
|
||
|
BASEDIR="/opt/teamspeak3-server"
|
||
|
|
||
|
# Work around DT_RPATH (.) security issue by chdir'ing into expected $LD_LIBRARY_PATH
|
||
|
export LD_LIBRARY_PATH="${BASEDIR}${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}"
|
||
|
|
||
|
# Launch teamspeak3-server
|
||
|
cd "${BASEDIR}" && exec "${BASEDIR}/ts3server" $*
|