blob: e62ea71b3b2b5cf552cd356f80b5f3cbabe4d4b7 (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/bash
set -o pipefail
_APPDIR="/opt/@appname@"
_RUNNAME="${_APPDIR}/bin/@runname@"
export PATH="${_APPDIR}:${_APPDIR}/lib/runtime/bin:${PATH}"
export LD_LIBRARY_PATH="${_APPDIR}/lib:${_APPDIR}/lib/runtime/lib:${LD_LIBRARY_PATH}"
cd "${_APPDIR}"
exec "${_RUNNAME}" "$@" || exit $?
|