diff --git a/root/app.sh b/root/app.sh index 8c987948..ca0ff7a8 100755 --- a/root/app.sh +++ b/root/app.sh @@ -6,18 +6,30 @@ if [ ! -z "$IP" ]; then ARGS="${ARGS} -ip ${IP}" fi +if [ ! -z "$LABEL" ]; then + ARGS="${ARGS} -l ${LABEL}" +fi + if [ ! -z "$NAME" ]; then ARGS="${ARGS} -n ${NAME}" fi -if [ ! -z "$PATTERN" ]; then - ARGS="${ARGS} -p ${PATTERN}" +if [ ! -z "$DIR" ]; then + ARGS="${ARGS} -d ${DIR}" fi if [ ! -z "$TEMP_DIR" ]; then ARGS="${ARGS} -t ${TEMP_DIR}" fi +if [ ! -z "$PATTERN" ]; then + ARGS="${ARGS} -p ${PATTERN}" +fi + +if [ ! -z "$RESOLUTION" ]; then + ARGS="${ARGS} -r ${RESOLUTION}" +fi + if [ ! -z "$CMDLINE" ]; then ARGS="${ARGS} ${CMDLINE}" fi @@ -26,4 +38,4 @@ cd /app echo "Starting" s6-setuidgid node \ - node index.js $ARGS "$@" \ No newline at end of file + node index.js $ARGS "$@"