Подготовить HY2XS к production-сборке

This commit is contained in:
2026-04-25 23:13:12 +05:00
commit 84a4e94567
277 changed files with 26513 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/usr/bin/env sh
set -eu
PACKAGE_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
ORCHESTRATOR="$PACKAGE_DIR/orchestrator/hy2xs-orchestrator"
log() {
printf '[hy2xs-install] %s\n' "$*"
}
fail() {
printf '[hy2xs-install] ERROR: %s\n' "$*" >&2
exit 1
}
if [ "$(id -u)" != "0" ]; then
fail "HY2XS install must run as root."
fi
if [ ! -x "$ORCHESTRATOR" ]; then
fail "Missing executable orchestrator artifact: $ORCHESTRATOR"
fi
log "package directory: $PACKAGE_DIR"
log "starting install-only orchestrator"
exec "$ORCHESTRATOR" install --package-dir "$PACKAGE_DIR" "$@"