#!/bin/sh set -eu # Default to running the server with mounted config. if [ "$#" -eq 0 ]; then set -- server --config /config/config.yaml elif [ "${1#-}" != "$1" ]; then # Allow passing server flags directly, e.g. `docker run ... --config ...`. set -- server "$@" fi exec scratchbox "$@"