[copr] restorecon for pgsql data dir if it has wrong selinux context

This commit is contained in:
Valentin Gologuzov 2015-04-09 13:38:53 +02:00
parent 6469b3d38f
commit 0bc692d60a

View file

@ -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 "