[copr] restorecon for pgsql data dir if it has wrong selinux context
This commit is contained in:
parent
6469b3d38f
commit
0bc692d60a
1 changed files with 8 additions and 0 deletions
|
@ -89,3 +89,11 @@
|
|||
- name: set dev banner for dev instance
|
||||
when: devel
|
||||
copy: src=banner-include.html dest=/var/lib/copr/
|
||||
|
||||
|
||||
- command: "ls -dZ /var/lib/pgsql"
|
||||
register: pgsql_ls
|
||||
|
||||
- name: update selinux context for postgress db dir if it's wrong
|
||||
command: "restorecon -vvRF /var/lib/pgsql"
|
||||
when: "'postgresql_db_t' not in pgsql_ls.stdout "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue