Skip to content

Commit

Permalink
KATELLO_UPGRADE_DIR can be specified via ENV var
Browse files Browse the repository at this point in the history
  • Loading branch information
mbacovsky committed Apr 25, 2012
1 parent eabe313 commit 330d8b5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions puppet/bin/katello-upgrade
Expand Up @@ -3,8 +3,7 @@
require 'optparse'



UPGRADE_SCRIPTS_DIR_PATH = '/usr/share/katello/install/upgrade-scripts/'
KATELLO_UPGRADE_DIR = ENV['KATELLO_UPGRADE_DIR'] || '/usr/share/katello/install/upgrade-scripts/'
HISTORY_FILE_PATH = '/var/lib/katello/upgrade-history'
DEFAULT_SCRIPTS_DIR = 'default/'
UPGRADE_SCRIPTS_DIR = 'upgrade/'
Expand Down Expand Up @@ -216,9 +215,9 @@ class UpgradeProcess
fake_history = DevNullHistory.new
upgrade_history = UpgradeHistory.new(HISTORY_FILE_PATH)
@default_queue = UpgradeQueue.new
@default_queue.load(UPGRADE_SCRIPTS_DIR_PATH+DEFAULT_SCRIPTS_DIR, fake_history) if not @options[:skip_default]
@default_queue.load(KATELLO_UPGRADE_DIR+DEFAULT_SCRIPTS_DIR, fake_history) if not @options[:skip_default]
@upgrade_queue = UpgradeQueue.new
@upgrade_queue.load(UPGRADE_SCRIPTS_DIR_PATH+UPGRADE_SCRIPTS_DIR, upgrade_history)
@upgrade_queue.load(KATELLO_UPGRADE_DIR+UPGRADE_SCRIPTS_DIR, upgrade_history)
@script_parser = ScriptParser.new

print_header
Expand Down

0 comments on commit 330d8b5

Please sign in to comment.