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:
@@ -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
|
- 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 ---------------------------------------------------------
|
# --- CLONE PROJECT ---------------------------------------------------------
|
||||||
|
# Try HTTPS (with SSL_NO_VERIFY for self-hosted Gitea), fall back to GitHub
|
||||||
- |
|
- |
|
||||||
su - darkforge -c '
|
su - darkforge -c '
|
||||||
cd /home/darkforge
|
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 || \
|
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 -------------------------------------------
|
# --- INSTALL CONVENIENCE COMMAND -------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user