copr-fe: consume the messages as non-root user
And consolidate the two service drop-in config files. Fixes: https://pagure.io/copr/copr/issue/2036
This commit is contained in:
parent
695d985789
commit
db3df8f747
3 changed files with 9 additions and 5 deletions
|
@ -1,2 +1,11 @@
|
|||
[Service]
|
||||
# We still need to move Frontend code to default system paths.
|
||||
Environment=PYTHONPATH=/usr/share/copr/coprs_frontend
|
||||
|
||||
# When the service is killed or failed, start it again
|
||||
Restart = on-failure
|
||||
RestartSec = 5s
|
||||
|
||||
# The default fedora messaging service file runs under root
|
||||
User=copr-fe
|
||||
Group=copr-fe
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
# When the service is killed or failed, start it again
|
||||
[Service]
|
||||
Restart = on-failure
|
||||
RestartSec = 5s
|
|
@ -176,7 +176,6 @@
|
|||
- name: start fm-consumer service
|
||||
service: state=started enabled=yes name="fm-consumer@copr_messaging"
|
||||
when:
|
||||
- ansible_facts.packages['copr-frontend'][0].version is version('1.156', '>=')
|
||||
- not services_disabled|bool
|
||||
|
||||
- name: install bash_profile file to ease some admin tasks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue