init-monorepo script: default MONOREPO_ROOT to proxmox-submodules-mirror (not Complete Credential)
Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled

Made-with: Cursor
This commit is contained in:
defiQUG
2026-03-21 17:24:31 -07:00
parent b0ce951c0f
commit be14693184

View File

@@ -5,12 +5,12 @@
# Optional: create empty repo on Gitea under an org and push (needs GITEA_TOKEN).
#
# Usage:
# MONOREPO_ROOT=/path/to/empty/dir ./scripts/maintenance/init-monorepo-from-proxmox-gitmodules.sh
# MONOREPO_ROOT=/path/to/mirror/dir ./scripts/maintenance/init-monorepo-from-proxmox-gitmodules.sh
# GITEA_TOKEN=... GITEA_ORG=DBIS ./scripts/maintenance/init-monorepo-from-proxmox-gitmodules.sh --create-remote --push
#
# Env:
# PROXMOX_ROOT — repo with .gitmodules (default: parent of scripts/maintenance/../../)
# MONOREPO_ROOT — target directory (default: $HOME/projects/complete-credential)
# MONOREPO_ROOT — target directory (required, or default: $HOME/projects/proxmox-submodules-mirror — NOT Complete Credential product repo)
# GITEA_URL — default https://gitea.d-bis.org
# GITEA_ORG — default DBIS (override e.g. d-bis if needed)
# GITEA_TOKEN — for API create + HTTPS push
@@ -20,7 +20,7 @@ set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROXMOX_ROOT="${PROXMOX_ROOT:-$(cd "$SCRIPT_DIR/../.." && pwd)}"
MONOREPO_ROOT="${MONOREPO_ROOT:-$HOME/projects/complete-credential}"
MONOREPO_ROOT="${MONOREPO_ROOT:-$HOME/projects/proxmox-submodules-mirror}"
GITEA_URL="${GITEA_URL:-https://gitea.d-bis.org}"
GITEA_ORG="${GITEA_ORG:-DBIS}"
SHALLOW="${SHALLOW:-1}"