Skip to content

Commit

Permalink
Merge pull request #122 from Rekholm/master
Browse files Browse the repository at this point in the history
Add asadmin execution rights
  • Loading branch information
Aketzu authored Jul 17, 2023
2 parents 65be4bf + edd309a commit ed12c4f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v1.2.8:
* Fix : Add asadmin execution rights to `node['glassfish']['user']` and `node['glassfish']['group']`

## v1.2.7:
* Enhance : Add support for Payara 5.2021.10

Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
maintainer_email '[email protected]'
license 'Apache-2.0'
description 'Installs/Configures GlassFish Application Server'
version '1.2.7'
version '1.2.8'
chef_version '>= 13.0'

issues_url 'https://github.com/realityforge/chef-glassfish'
Expand Down
8 changes: 8 additions & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ def gf_scan_existing_binary_endorsed_jars(install_dir)

node.override['glassfish']['install_dir'] = a.target_directory

unless node.windows?
file "#{node['glassfish']['install_dir']}/glassfish/bin/asadmin" do
mode '0755'
owner node['glassfish']['user']
group node['glassfish']['group']
end
end

exists_at_run_start = ::File.exist?(node['glassfish']['install_dir'])

template "#{node['glassfish']['install_dir']}/glassfish/config/asenv.conf" do
Expand Down

0 comments on commit ed12c4f

Please sign in to comment.