From 57ceae3bd5e974f7b0a1f0f5914ed1cf077784ce Mon Sep 17 00:00:00 2001 From: S Date: Mon, 2 Mar 2026 11:06:24 -0500 Subject: [PATCH] fix: add symlink registration for Unraid Compose Manager dashboard --- phase1_gitea_unraid.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/phase1_gitea_unraid.sh b/phase1_gitea_unraid.sh index 1d3e105..a09e48f 100755 --- a/phase1_gitea_unraid.sh +++ b/phase1_gitea_unraid.sh @@ -89,6 +89,17 @@ else log_success "docker-compose.yml deployed" fi +# Symlink into Unraid Compose Manager plugin so it appears on the dashboard. +# Idempotent: ln -sf overwrites existing symlink. Skipped if plugin not installed. +COMPOSE_PLUGIN_PROJECTS="/boot/config/plugins/compose.manager/projects" +if ssh_exec UNRAID "test -d '${COMPOSE_PLUGIN_PROJECTS}'"; then + ssh_exec UNRAID "mkdir -p '${COMPOSE_PLUGIN_PROJECTS}/gitea' && \ + ln -sf '${DATA_PATH}/docker-compose.yml' '${COMPOSE_PLUGIN_PROJECTS}/gitea/docker-compose.yml'" + log_success "Registered with Unraid Compose Manager (dashboard symlink)" +else + log_info "Compose Manager plugin not found — skipping dashboard registration" +fi + # --------------------------------------------------------------------------- # Step 4: Render + SCP app.ini # ---------------------------------------------------------------------------