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 # ---------------------------------------------------------------------------