mirror of
https://github.com/openziti/zrok.git
synced 2024-11-25 01:23:49 +01:00
24 lines
412 B
Bash
Executable File
24 lines
412 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
set -o xtrace
|
|
|
|
for arg in "${@}"; do
|
|
if [[ ! "${arg}" =~ ^- && -s "${arg}" ]]; then
|
|
CONFIG="${arg}"
|
|
break
|
|
fi
|
|
done
|
|
|
|
if [[ -z "${CONFIG}" ]]; then
|
|
echo "ERROR: args '${*}' do not contain a non-empty config file" >&2
|
|
exit 1
|
|
fi
|
|
|
|
# config.yml is first param
|
|
zrok admin bootstrap --skip-frontend "${CONFIG}"
|
|
|
|
exec "$@"
|