mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-11 18:36:53 +08:00
copr: be: proper umask for action processor
This commit is contained in:
committed by
Pierre-Yves Chibon
parent
e2cfa920cc
commit
93bcd9d488
11
roles/copr/backend/files/proper-action-processor-umask.patch
Normal file
11
roles/copr/backend/files/proper-action-processor-umask.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- /usr/bin/copr-backend-process-action 2019-12-04 01:01:26.000000000 +0000
|
||||
+++ /usr/bin/copr-backend-process-action 2019-12-05 05:43:14.586341122 +0000
|
||||
@@ -104,7 +104,7 @@
|
||||
|
||||
context = contextlib.nullcontext()
|
||||
if args.daemon:
|
||||
- context = daemon.DaemonContext()
|
||||
+ context = daemon.DaemonContext(umask=0o22)
|
||||
|
||||
with context:
|
||||
logger_name = '{}.{}.pid-{}'.format(
|
||||
@@ -28,6 +28,11 @@
|
||||
- php-cli
|
||||
- cronolog
|
||||
|
||||
- name: setup correct umask for daemoncontext in action processor
|
||||
patch: src=patches/proper-action-processor-umask.patch
|
||||
dest=/usr/bin/copr-backend-process-action
|
||||
tags: patches
|
||||
|
||||
- name: install openstackclient for image preparation
|
||||
dnf: state=present name=python3-openstackclient
|
||||
when: devel|bool
|
||||
|
||||
Reference in New Issue
Block a user