blob: 80be857f16573cf51bb454fe470a87e94a8396b1 (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/bash
set -o pipefail
_APPDIR=/usr/lib/@appname@
_RUNNAME="${_APPDIR}/@runname@"
export PATH="${_APPDIR}:${_APPDIR}/rt/bin:${PATH}"
export LD_LIBRARY_PATH="${_APPDIR}/rt/lib:${_APPDIR}/rt/lib/jli:${_APPDIR}/rt/lib/server:${LD_LIBRARY_PATH}"
cd "${_APPDIR}" || { echo "Failed to change directory to ${_APPDIR}"; exit 1; }
exec "${_RUNNAME}" "$@" || exit $?
|