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

+4 -4
View File
@@ -1,17 +1,17 @@
#!/usr/bin/env bash
# Envoie un ou plusieurs paquets vers le dépôt archrepo.
# Envoie un ou plusieurs paquets vers le dépôt repo.
#
# REPO_URL=http://mc.laxacube.ch:30065 REPO_TOKEN=... ./push.sh *.pkg.tar.zst
#
# REPO_URL URL du dépôt (défaut : http://127.0.0.1:30065 ; Caddy écoute le port
# pour n'importe quel Host, le nom public fonctionne aussi)
# REPO_TOKEN jeton d'administration ; à défaut, lu dans $ARCHREPO_TOKEN_FILE
# (/etc/archrepo/token par défaut), avec sudo si nécessaire.
# REPO_TOKEN jeton d'administration ; à défaut, lu dans $REPO_TOKEN_FILE
# (/etc/repo/token par défaut), avec sudo si nécessaire.
set -euo pipefail
REPO_URL="${REPO_URL:-http://127.0.0.1:30065}"
TOKEN_FILE="${ARCHREPO_TOKEN_FILE:-/etc/archrepo/token}"
TOKEN_FILE="${REPO_TOKEN_FILE:-/etc/repo/token}"
REPO_TOKEN="${REPO_TOKEN:-}"
usage() {