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

Drop Foreman from Apache group on upgrade #727

Merged
merged 1 commit into from
Dec 10, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 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 @@ -226,6 +230,7 @@ def fail_and_exit(message)
upgrade_step :migrate_foreman, :run_always => true
upgrade_step :mongo_mmapv1_check
upgrade_step :remove_legacy_mongo
upgrade_step :drop_apache_foreman_group
end

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