Skip to content

Commit

Permalink
[HWORKS-762] Don't try to undeploy hopsworks-* current_version if it'… (
Browse files Browse the repository at this point in the history
#1055)

* [HWORKS-762] Don't try to undeploy hopsworks-* current_version if it's not deployed
  • Loading branch information
SirOibaf authored Sep 26, 2023
1 parent c37f4a6 commit ecb7a44
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,11 @@
keep_state true
enabled true
secure true
<<<<<<< Updated upstream
only_if "#{asadmin_cmd} list-applications --type ejb #{deployment_group} | grep -w \"hopsworks-ear:#{node['hopsworks']['current_version']}\""
=======
only_if "#{asadmin_cmd} list-applications --type ejb domain | grep -w \"hopsworks-ear:#{node['hopsworks']['current_version']}\""
>>>>>>> Stashed changes
end

glassfish_deployable "hopsworks" do
Expand All @@ -391,6 +396,7 @@
retries 1
keep_state true
enabled true
only_if "#{asadmin_cmd} list-applications --type web domain | grep -w \"hopsworks-web:#{node['hopsworks']['current_version']}\""
end

glassfish_deployable "hopsworks-ca" do
Expand All @@ -408,6 +414,7 @@
retries 1
keep_state true
enabled true
only_if "#{asadmin_cmd} list-applications --type ejb domain | grep -w \"hopsworks-ca:#{node['hopsworks']['current_version']}\""
end
end

Expand Down

0 comments on commit ecb7a44

Please sign in to comment.