File: 0003-Adjust-path-of-aclchecker.py.patch

package info (click to toggle)
pagure 5.14.1%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,008 kB
  • sloc: python: 125,295; javascript: 22,012; makefile: 208; sh: 191
file content (24 lines) | stat: -rw-r--r-- 1,018 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Adjust path of aclchecker.py

Pagure's default_config.py file contains a hardcoded path for the
aclchecker.py script which doesn't work for us (/usr/libexec,
Fedora-specific).  This patch adjusts the path to where we actually
install the script (/usr/share/pagure).

pagure-ev/pagure_ev.service is not similarly patched because
we don't install that (we use our pagure-ev-server.service instead)

Author: Sergio Durigan Junior <sergiodj@sergiodj.net>
Forwarded: not-needed

--- a/pagure/default_config.py
+++ b/pagure/default_config.py
@@ -605,7 +605,7 @@ SSH_KEYS_USERNAME_EXPECT = None
 # Arguments to add to the SSH keys, possible replacements:
 # %(username)s: username owning this key
 SSH_KEYS_OPTIONS = (
-    'restrict,command="/usr/libexec/pagure/aclchecker.py %(username)s"'
+    'restrict,command="/usr/share/pagure/aclchecker.py %(username)s"'
 )
 # If not set to None, aclchecker and keyhelper will use this api admin
 # token to get authorized to internal endpoints that they use. The token