copr: move pulp-redirect file to persistent storage

This commit is contained in:
Jiri Kyjovsky
2025-12-07 19:02:45 +01:00
committed by nikromen
parent 557a9df3af
commit 6bf2cc4cd8
2 changed files with 2 additions and 2 deletions

View File

@@ -104,7 +104,7 @@
- name: Create a txt file with Pulp redirects
file:
state: touch
dest: /var/lib/copr/pulp-redirect.txt
dest: /var/lib/copr/public_html/pulp-redirect.txt
owner: copr
group: copr
mode: "644"

View File

@@ -5,7 +5,7 @@ pulp_content_url = "{{ pulp_content_url }}"
-- SQLite claims to be 35% faster than reading blobs from filesystem
-- https://www.sqlite.org/fasterthanfs.html
-- Worth trying out once we hit a bottleneck for reading the file
file_with_redirects = "/var/lib/copr/pulp-redirect.txt"
file_with_redirects = "/var/lib/copr/public_html/pulp-redirect.txt"
function line_in_file(searched, file)