#!/bin/bash

<% if @pe -%>
export PATH=/opt/puppet/bin:$PATH
<% end -%>

# Setup the SSL stuff
<%= @sbin_dir -%>/puppetdb-ssl-setup

# Correct permissions
find  <%= @config_dir -%> -type f | xargs chmod 640
chown -R <%= @name -%>:<%= @name -%> <%= @etc_dir -%>
chown -R <%= @name -%>:<%= @name -%> <%= @install_dir %>
<% unless  @pe -%>
chown -R <%= @name -%>:<%= @name -%> <%= @link  %>
<% end -%>
chown -R <%= @name -%>:<%= @name -%> /var/log/<%= @name %>

#!/bin/bash

<% if @pe -%>
export PATH=/opt/puppet/bin:$PATH
<% end -%>

# Setup the SSL stuff
<%= @sbin_dir -%>/puppetdb-ssl-setup

# Correct permissions
find  <%= @config_dir -%> -type f | xargs chmod 640
chown -R <%= @name -%>:<%= @name -%> <%= @etc_dir %>
chown -R <%= @name -%>:<%= @name -%> <%= @install_dir %>
<% unless  @pe -%>
chown -R <%= @name -%>:<%= @name -%> <%= @link  %>
<% end -%>
chown -R <%= @name -%>:<%= @name -%> /var/log/<%= @name %>

Fix typo in redhat postinstall template
Fix typo in redhat postinstall template
