1 2 3 4 5 6 7
#!/bin/bash set -o pipefail _APPDIR=/opt/@appname@ _RUNNAME="${_APPDIR}/@runname@" export PATH="${_APPDIR}:${PATH}" cd "${_APPDIR}" exec "${_RUNNAME}" "$@" || exit $?