refactor(server)!: rename archrepo to repo

The repository, its Python service, its systemd units, its token file and
its environment prefix still carried the old name, which matches nothing
public any more. Paths, units, user and variables now use repo: REPO_*,
/etc/repo/token, /var/lib/repo, repo.service and repo-prune.timer.

A server installed before this change keeps the old user, paths and token:
run server/install.sh again to recreate them.
This commit is contained in:
Gianmarco-Ruberti committed 2026-12-03 12:02:42 +01:00
1 parent b689351535
commit 30cb9c9fc2
8 files changed
+80 -77

No files matched your search

+6 -6
View File
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex">
<title>archrepo — publication de paquets</title>
<title>repo — publication de paquets</title>
<style>
:root {
--bg: #0d1117;
@@ -110,7 +110,7 @@
<div class="brand">
<span class="logo">◧</span>
<div>
<h1 id="repo-name">archrepo</h1>
<h1 id="repo-name">repo</h1>
<p class="sub" id="repo-sub">dépôt pacman</p>
</div>
</div>
@@ -125,7 +125,7 @@
<button id="save-token" class="primary">Enregistrer</button>
<button id="forget-token" class="ghost">Oublier</button>
</div>
<p class="hint">Le jeton se trouve sur le serveur dans <code>/etc/archrepo/token</code>. Il n'est conservé que dans ce navigateur.</p>
<p class="hint">Le jeton se trouve sur le serveur dans <code>/etc/repo/token</code>. Il n'est conservé que dans ce navigateur.</p>
</section>
<section class="card">
@@ -165,11 +165,11 @@
</section>
</main>
<footer>archrepo — les paquets et bases sont servis par Caddy, les publications passent par cette interface.</footer>
<footer>repo — les paquets et bases sont servis par Caddy, les publications passent par cette interface.</footer>
<div id="toast" class="toast"></div>
<script>
const TOKEN_KEY = 'archrepo.token';
const TOKEN_KEY = 'repo.token';
const state = {
token: localStorage.getItem(TOKEN_KEY) || '',
health: null,
@@ -235,7 +235,7 @@ async function loadHealth() {
function renderPacmanConf() {
const arch = (state.health && state.health.arch) || 'x86_64';
const repo = (state.health && state.health.repo) || 'archrepo';
const repo = (state.health && state.health.repo) || 'repo';
const conf = `[${repo}]\nServer = ${window.location.origin}/${arch}\nSigLevel = Optional TrustAll`;
$('pacman-conf').textContent = conf;
}