freeze initial panda-rpki staging
This commit is contained in:
26
scripts/runtime/entrypoint.sh
Executable file
26
scripts/runtime/entrypoint.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
BIN_DIR="${BIN_DIR:-/opt/panda-rpki-validator/bin}"
|
||||
VALIDATOR_BIN="$BIN_DIR/panda-rpki-validator"
|
||||
|
||||
if [[ ! -x "$VALIDATOR_BIN" ]]; then
|
||||
echo "panda-rpki-validator: missing executable: $VALIDATOR_BIN" >&2
|
||||
exit 127
|
||||
fi
|
||||
|
||||
if [[ "${1:-}" == "run" || "${1:-}" == "run-validator" ]]; then
|
||||
shift
|
||||
exec "/opt/panda-rpki-validator/run_validator.sh" "$@"
|
||||
fi
|
||||
|
||||
if [[ "${1:-}" == "daemon" ]]; then
|
||||
shift
|
||||
exec "$BIN_DIR/panda-rpki-validator-daemon" "$@"
|
||||
fi
|
||||
|
||||
if [[ "$#" -eq 0 ]]; then
|
||||
set -- --help
|
||||
fi
|
||||
|
||||
exec "$VALIDATOR_BIN" "$@"
|
||||
1621
scripts/runtime/run_validator.sh
Executable file
1621
scripts/runtime/run_validator.sh
Executable file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user