From 6bf2cc4cd801a595498ef5ea844552590ee81754 Mon Sep 17 00:00:00 2001 From: Jiri Kyjovsky Date: Sun, 7 Dec 2025 19:02:45 +0100 Subject: [PATCH] copr: move pulp-redirect file to persistent storage --- roles/copr/backend/tasks/main.yml | 2 +- roles/copr/backend/templates/lighttpd/pulp-redirect.lua.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/copr/backend/tasks/main.yml b/roles/copr/backend/tasks/main.yml index 2c7b89950c..d5a11cb754 100644 --- a/roles/copr/backend/tasks/main.yml +++ b/roles/copr/backend/tasks/main.yml @@ -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" diff --git a/roles/copr/backend/templates/lighttpd/pulp-redirect.lua.j2 b/roles/copr/backend/templates/lighttpd/pulp-redirect.lua.j2 index d783a54cad..1094114e4f 100644 --- a/roles/copr/backend/templates/lighttpd/pulp-redirect.lua.j2 +++ b/roles/copr/backend/templates/lighttpd/pulp-redirect.lua.j2 @@ -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)