From e9abeccdead3800a8d73eba2e33d067a8775fbd1 Mon Sep 17 00:00:00 2001
From: rob thijssen
Date: Sat, 16 May 2026 08:31:34 +0300
Subject: [PATCH] fix(ui): host .repo files and use URL form in install
instructions
The previous instructions used `--from-repofile=/dev/stdin` with a
heredoc, which fails because dnf copies the source file and /dev/stdin
is not a regular file. Host the .repo files on the deployed site and
update the docs to use `--from-repofile=https://...` instead.
Co-Authored-By: Claude Opus 4.7 (1M context)
---
.gitea/workflows/deploy-ui.yml | 1 +
ui/public/lair-cafe-unstable.repo | 6 ++++++
ui/public/lair-cafe.repo | 6 ++++++
ui/src/pages/Home.tsx | 20 ++++----------------
4 files changed, 17 insertions(+), 16 deletions(-)
create mode 100644 ui/public/lair-cafe-unstable.repo
create mode 100644 ui/public/lair-cafe.repo
diff --git a/.gitea/workflows/deploy-ui.yml b/.gitea/workflows/deploy-ui.yml
index d7055aa..4947e25 100644
--- a/.gitea/workflows/deploy-ui.yml
+++ b/.gitea/workflows/deploy-ui.yml
@@ -46,6 +46,7 @@ jobs:
--delete \
--chmod D755,F644 \
--include="index.html" \
+ --include="*.repo" \
--include="assets/***" \
--exclude="*" \
ui/dist/ \
diff --git a/ui/public/lair-cafe-unstable.repo b/ui/public/lair-cafe-unstable.repo
new file mode 100644
index 0000000..456b334
--- /dev/null
+++ b/ui/public/lair-cafe-unstable.repo
@@ -0,0 +1,6 @@
+[lair-cafe-unstable]
+name=lair.cafe RPM Repository (unstable)
+baseurl=https://rpm.lair.cafe/fedora/$releasever/$basearch/unstable/
+enabled=0
+gpgcheck=1
+gpgkey=https://rpm.lair.cafe/8b2023ce.gpg
diff --git a/ui/public/lair-cafe.repo b/ui/public/lair-cafe.repo
new file mode 100644
index 0000000..05994b9
--- /dev/null
+++ b/ui/public/lair-cafe.repo
@@ -0,0 +1,6 @@
+[lair-cafe]
+name=lair.cafe RPM Repository
+baseurl=https://rpm.lair.cafe/fedora/$releasever/$basearch/
+enabled=1
+gpgcheck=1
+gpgkey=https://rpm.lair.cafe/8b2023ce.gpg
diff --git a/ui/src/pages/Home.tsx b/ui/src/pages/Home.tsx
index c7bb762..5038852 100644
--- a/ui/src/pages/Home.tsx
+++ b/ui/src/pages/Home.tsx
@@ -2,20 +2,8 @@ import { Card, Col, Row } from "react-bootstrap";
import { CodeBlock } from "../components/CodeBlock.tsx";
const GPG_KEY_URL = "https://rpm.lair.cafe/8b2023ce.gpg";
-
-const REPO_FILE = `[lair-cafe]
-name=lair.cafe RPM Repository
-baseurl=https://rpm.lair.cafe/fedora/$releasever/$basearch/
-enabled=1
-gpgcheck=1
-gpgkey=${GPG_KEY_URL}`;
-
-const UNSTABLE_REPO_FILE = `[lair-cafe-unstable]
-name=lair.cafe RPM Repository (unstable)
-baseurl=https://rpm.lair.cafe/fedora/$releasever/$basearch/unstable/
-enabled=0
-gpgcheck=1
-gpgkey=${GPG_KEY_URL}`;
+const REPO_URL = "https://rpm.lair.cafe/lair-cafe.repo";
+const UNSTABLE_REPO_URL = "https://rpm.lair.cafe/lair-cafe-unstable.repo";
export function Home() {
return (
@@ -40,7 +28,7 @@ export function Home() {
2. Add the repository
- {`sudo dnf config-manager addrepo --from-repofile=/dev/stdin <<'EOF'\n${REPO_FILE}\nEOF`}
+ {`sudo dnf config-manager addrepo --from-repofile=${REPO_URL}`}
3. Install a package
@@ -74,7 +62,7 @@ export function Home() {
stable repo:
- {`sudo dnf config-manager addrepo --from-repofile=/dev/stdin <<'EOF'\n${UNSTABLE_REPO_FILE}\nEOF`}
+ {`sudo dnf config-manager addrepo --from-repofile=${UNSTABLE_REPO_URL}`}