Fix git clone in Proxmox VM: add GIT_SSL_NO_VERIFY for self-hosted Gitea

The Gitea server at git.dannyhaslund.dk has a TLS SNI issue that
causes 'tlsv1 unrecognized name' errors from inside VMs. Adding
GIT_SSL_NO_VERIFY=true for the clone since it's a trusted self-hosted
server on the local network.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-19 16:12:22 +01:00
parent 83760025b6
commit 0c0f1ec715

View File

@@ -170,12 +170,13 @@ runcmd:
- pacman -S --noconfirm --needed base-devel git wget curl rust cargo qemu-full edk2-ovmf squashfs-tools xorriso dosfstools mtools python bc rsync openssh tmux
# --- CLONE PROJECT ---------------------------------------------------------
# Try HTTPS (with SSL_NO_VERIFY for self-hosted Gitea), fall back to GitHub
- |
su - darkforge -c '
cd /home/darkforge
git clone --recurse-submodules https://git.dannyhaslund.dk/danny8632/darkforge.git 2>/dev/null || \
GIT_SSL_NO_VERIFY=true git clone --recurse-submodules https://git.dannyhaslund.dk/danny8632/darkforge.git 2>/dev/null || \
git clone --recurse-submodules https://github.com/danny8632/darkforge.git 2>/dev/null || \
echo "CLONE FAILED — manually clone the repo after login"
echo "CLONE FAILED — run manually: GIT_SSL_NO_VERIFY=true git clone --recurse-submodules https://git.dannyhaslund.dk/danny8632/darkforge.git ~/darkforge"
'
# --- INSTALL CONVENIENCE COMMAND -------------------------------------------