Files
awoooi/ops/runner/install-awoooi-non110-user-runner.sh

22 lines
755 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Compatibility wrapper for the retired Docker-latest prepare-only installer.
# The active non-secret path is host-binary user service install. It preserves
# the old PREPARE_ONLY=1 call shape, but blocks registration/start shortcuts.
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
TARGET="${SCRIPT_DIR}/install-awoooi-non110-runner-user-service.sh"
if [ "${REGISTER_NOW:-0}" = "1" ] || [ "${START_NOW:-0}" = "1" ]; then
echo "BLOCKER retired_wrapper_does_not_register_or_start_runner" >&2
echo "safe_next_step=use_install-awoooi-non110-runner-user-service_then_readiness_verifier" >&2
exit 1
fi
if [ "${PREPARE_ONLY:-0}" = "1" ] && [ "$#" -eq 0 ]; then
set -- --apply
fi
exec "$TARGET" "$@"