copr: frontend: dump dir is writeable by copr-fe
This commit is contained in:
parent
b0b3de5ec0
commit
bb3381a6e1
3 changed files with 9 additions and 10 deletions
|
@ -7,4 +7,4 @@
|
|||
|
||||
runuser -c 'copr-frontend notify_outdated_chroots' - copr-fe
|
||||
runuser -c 'copr-frontend delete_outdated_chroots' - copr-fe
|
||||
/usr/bin/bash /usr/libexec/copr_dump_db.sh
|
||||
/usr/bin/bash /usr/libexec/copr_dump_db.sh /var/www/html/db_dumps/
|
||||
|
|
|
@ -38,6 +38,14 @@
|
|||
tags:
|
||||
- packages
|
||||
|
||||
- name: directory for postgresql dumps
|
||||
file: state=directory path=/var/www/html/db_dumps/
|
||||
owner=root mode=755
|
||||
|
||||
- name: allow postgres writing to db_dumps dir
|
||||
acl: path=/var/www/html/db_dumps/
|
||||
entity=copr-fe permissions=rwx etype=user state=present
|
||||
|
||||
- name: install copr configs
|
||||
template: src="copr.conf" dest=/etc/copr/copr.conf mode=600
|
||||
notify:
|
||||
|
|
|
@ -3,15 +3,6 @@
|
|||
with_items:
|
||||
- "postgresql-server"
|
||||
- "postgresql-contrib"
|
||||
- "httpd-filesystem"
|
||||
|
||||
- name: directory for postgresql dumps
|
||||
file: state=directory path=/var/www/html/db_dumps/
|
||||
owner=root mode=755
|
||||
|
||||
- name: allow postgres writing to db_dumps dir
|
||||
acl: path=/var/www/html/db_dumps/
|
||||
entity=postgres permissions=rwx etype=user state=present
|
||||
|
||||
- name: See if PostgreSQL is initialized
|
||||
stat: path=/var/lib/pgsql/data/PG_VERSION
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue