# /etc/profile: system-wide .profile file for bash(1).

# This file is managed by Chef
# Do not edit this file by hand!

if [ -f /etc/sysprofile ]; then
  if [ `grep -x ^SYSDEBUG=1 /etc/sysprofile` ]; then
    if [ ! -d /var/tmp/sysprofile ]; then
        mkdir -m 1777 /var/tmp/sysprofile
        touch /var/tmp/sysprofile/$USER
        chmod 600 /var/tmp/sysprofile/$USER
    fi
    . /etc/sysprofile >> /var/tmp/sysprofile/$USER 2>&1
  else
    . /etc/sysprofile
  fi
fi

<% if @profile[:path] %>
<%   if @profile[:path_append] %>
PATH=$PATH:<%= @profile[:path].join ':' %>
<%   else %>
PATH=<%= @profile[:path].join ':'}  %>
<%   end %>
<% end %>

<%= @profile[:append_scripts].join "\n" %>

# /etc/profile: system-wide .profile file for bash(1).

# This file is managed by Chef
# Do not edit this file by hand!

if [ -f /etc/sysprofile ]; then
  if [ `grep -x ^SYSDEBUG=1 /etc/sysprofile` ]; then
    if [ ! -d /var/tmp/sysprofile ]; then
        mkdir -m 1777 /var/tmp/sysprofile
        touch /var/tmp/sysprofile/$USER
        chmod 600 /var/tmp/sysprofile/$USER
    fi
    . /etc/sysprofile >> /var/tmp/sysprofile/$USER 2>&1
  else
    . /etc/sysprofile
  fi
fi

<% if @profile[:path] %>
<%   if @profile[:path_append] %>
PATH=$PATH:<%= @profile[:path].join ':' %>
<%   else %>
PATH=<%= @profile[:path].join ':'  %>
<%   end %>
<% end %>

<%= @profile[:append_scripts].join "\n" %>

Fix remove of erroneous curly brace.
Fix remove of erroneous curly brace.
