Skip to content

Commit ae7a261

Browse files
committed
Only try SELinux stuff if SELinux is available/enabled
1 parent 6c2943f commit ae7a261

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

nosql-booster/config/lin_file.sls

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ NoSQL Booster Desktop Entry:
5757
- template: 'jinja'
5858
- user: 'root'
5959
60+
{%- if grains.get('selinux:enabled', False) %}
6061
Restore NoSQL Booster Context:
6162
cmd.run:
6263
- name: '/sbin/restorecon -R "{{ nosql_booster.config.install_root }}"'
@@ -81,3 +82,4 @@ Set NoSQL Booster Directory SELinux Context:
8182
- require:
8283
- sls: '{{ sls_package_install }}'
8384
- sel_type: 'usr_t'
85+
{%- endif %}

0 commit comments

Comments
 (0)