14 行
569 B
Bash
可执行文件
14 行
569 B
Bash
可执行文件
#!/usr/bin/env bash
|
|
# Compatibility name for the current interface; legacy lease modes are retired.
|
|
set -euo pipefail
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
service=integration
|
|
if [[ "${1:-}" == --service ]]; then service="${2:?service required}"; shift 2; fi
|
|
mode="${1:---help}"
|
|
if [[ "$mode" == --help ]]; then exec "$DIR/deploy.sh" --help; fi
|
|
shift
|
|
case "$mode" in
|
|
--plan|--apply|--check-config) exec "$DIR/deploy.sh" "$mode" "$service" "$@" ;;
|
|
*) echo 'Legacy upgrade/config modes retired. Use script/datagov/deploy.sh --help.' >&2; exit 2 ;;
|
|
esac
|