From a37d89d34048ba95b979e3a96f22f4241d119b3e Mon Sep 17 00:00:00 2001
From: BarnacleBoy
Date: Mon, 4 May 2026 20:19:29 +0000
Subject: [PATCH] Fix deploy: inline eepsite sync instead of excluded script
---
.forgejo/workflows/deploy.yml | 32 +++++++++++++++++++++++++++++---
1 file changed, 29 insertions(+), 3 deletions(-)
diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml
index 86ff561..990c197 100644
--- a/.forgejo/workflows/deploy.yml
+++ b/.forgejo/workflows/deploy.yml
@@ -32,8 +32,34 @@ jobs:
--exclude '.forgejo' \
--exclude 'terraform' \
--exclude 'research' \
- --exclude 'scripts' \
./ root@5.161.214.55:/var/www/krustyplanet/
- - name: Sync eepsite
- run: ssh root@5.161.214.55 'cd /var/www/krustyplanet && bash scripts/sync-eepsite.sh'
+ - name: Sync eepsite from clearnet
+ run: |
+ ssh root@5.161.214.55 bash -s << 'SCRIPT'
+ set -euo pipefail
+
+ CLEARNET="/var/www/krustyplanet"
+ EEPSITE="/var/www/eepsite"
+
+ # Sync shared static assets
+ rsync -av --delete "$CLEARNET/css/" "$EEPSITE/css/"
+ rsync -av --delete "$CLEARNET/js/" "$EEPSITE/js/"
+ cp "$CLEARNET/favicon.svg" "$EEPSITE/favicon.svg"
+
+ # Shared pages to sync
+ SHARED_PAGES=("index.html" "services.html" "pricing.html" "contact.html")
+
+ for page in "${SHARED_PAGES[@]}"; do
+ cp "$CLEARNET/$page" "$EEPSITE/$page"
+
+ # Replace I2P mirror link with clearnet reference
+ sed -i 's|🔒 I2P Mirror:.*b32\.i2p
|🌐 Clearnet: https://krustyplanet.org|' "$EEPSITE/$page"
+
+ # Remove nav links to clearnet-only pages
+ sed -i '/href="\/free-audit\.html"/d' "$EEPSITE/$page"
+ sed -i '/href="\/blog\.html"/d' "$EEPSITE/$page"
+ done
+
+ echo "Eepsite synced."
+ SCRIPT