Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
Drop Foreman from Apache group on upgrade
Browse files Browse the repository at this point in the history
This removes a dependency cycle caused by prior installations.
  • Loading branch information
ehelms committed Dec 10, 2018
1 parent 8be2c38 commit 95e564f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/pre/15-check-disk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$stderr.puts DISK_SIZE
kafo.class.exit 1
end
rescue
rescue Exception => e
$stderr.puts 'Failed to verify available disk space'
end
end
6 changes: 6 additions & 0 deletions hooks/pre/30-upgrade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ def upgrade_qpid_paths
end
end

def drop_apache_foreman_group
Kafo::Helpers.execute("gpasswd -d apache foreman")
end

def upgrade_step(step, options = {})
noop = app_value(:noop) ? ' (noop)' : ''
long_running = options[:long_running] ? ' (this may take a while) ' : ''
Expand Down Expand Up @@ -228,5 +232,7 @@ def fail_and_exit(message)
upgrade_step :remove_legacy_mongo
end

upgrade_step :drop_apache_foreman_group

Kafo::Helpers.log_and_say :info, 'Upgrade Step: Running installer...'
end

0 comments on commit 95e564f

Please # to comment.