Files
weave-scope/docker/entrypoint.sh
Iago López Galeiras 5cb5c7d42e Fix shfmt issues
2017-01-18 11:51:41 +01:00

24 lines
499 B
Bash
Executable File

#!/bin/bash
mkdir -p /var/run/weave
for arg in "$@"; do
case "$arg" in
--no-app | --probe-only | --service-token* | --probe.token*)
touch /etc/service/app/down
;;
--no-probe | --app-only)
touch /etc/service/probe/down
;;
esac
done
# shellcheck disable=SC2034
ARGS=("$@")
declare -p ARGS >/var/run/weave/scope-app.args
# shellcheck disable=SC2034
declare -p ARGS >/var/run/weave/scope-probe.args
exec /home/weave/runsvinit