#!/usr/bin/env bash
set -euo pipefail

# Legacy bootstrap shim. Prefer scripts/vps/deploy_on_vps.sh directly.
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

BUILD_WEB_FLAG=()
if [[ "${BUILD_WEB:-false}" != "true" ]]; then
  BUILD_WEB_FLAG+=(--skip-web)
fi

exec "$SCRIPT_DIR/deploy_on_vps.sh" "${BUILD_WEB_FLAG[@]}" "$@"
