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) <noreply@anthropic.com>
This commit is contained in:
6
ui/public/lair-cafe-unstable.repo
Normal file
6
ui/public/lair-cafe-unstable.repo
Normal file
@@ -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
|
||||
6
ui/public/lair-cafe.repo
Normal file
6
ui/public/lair-cafe.repo
Normal file
@@ -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
|
||||
@@ -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() {
|
||||
|
||||
<h6 className="mt-4">2. Add the repository</h6>
|
||||
<CodeBlock language="bash">
|
||||
{`sudo dnf config-manager addrepo --from-repofile=/dev/stdin <<'EOF'\n${REPO_FILE}\nEOF`}
|
||||
{`sudo dnf config-manager addrepo --from-repofile=${REPO_URL}`}
|
||||
</CodeBlock>
|
||||
|
||||
<h6 className="mt-4">3. Install a package</h6>
|
||||
@@ -74,7 +62,7 @@ export function Home() {
|
||||
stable repo:
|
||||
</p>
|
||||
<CodeBlock language="bash">
|
||||
{`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}`}
|
||||
</CodeBlock>
|
||||
|
||||
<h6 className="mt-4">
|
||||
|
||||
Reference in New Issue
Block a user