Skip to main content

scripts/bootstrap/onboard-workspace.sh

Metadata

Indexed Symbols

No indexed functions/methods detected in this file.

Markdown Headings (if applicable)

No markdown headings detected.

Source Preview

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

if [[ -z "${DATABASE_URL:-}" ]]; then
echo "DATABASE_URL is required"
exit 1
fi

if [[ -z "${WORKSPACE_NAME:-}" || -z "${WORKSPACE_SLUG:-}" ]]; then
echo "WORKSPACE_NAME and WORKSPACE_SLUG are required"
exit 1
fi

if [[ -z "${CLIENT_NAME:-}" ]]; then
echo "CLIENT_NAME is required"
exit 1
fi

if [[ -z "${CONTACT_FIRST_NAME:-}" || -z "${CONTACT_LAST_NAME:-}" || -z "${CONTACT_EMAIL:-}" ]]; then
echo "CONTACT_FIRST_NAME, CONTACT_LAST_NAME, and CONTACT_EMAIL are required"
exit 1
fi

if [[ -z "${ASSET_HOSTNAME:-}" || -z "${ASSET_OS:-}" ]]; then
echo "ASSET_HOSTNAME and ASSET_OS are required"