summaryrefslogtreecommitdiff
blob: 2b2e1c3ce09c54723fb9ab52bde651dbd53e4bb7 (plain)
1
2
3
4
5
6
7
8
9
10
#! /bin/bash

BASEDIR="/opt/teamspeak3-server"

export LD_LIBRARY_PATH="${BASEDIR}${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}"

# work around DT_RPATH (.) security issue by chdir'ing into expected $LD_LIBRARY_PATH
cd "${BASEDIR}"

exec "${BASEDIR}/ts3server-bin" $*