methods/sz_common.rb
# Check branded zone support is installed
Check branded zone support is installed
Check branded zone support is installed
def check_branded_zone_pkg()
  if options['host-os-release'].match(/11/)
    message = "Information:\tChecking branded zone support is installed"
    command = "pkg info pkg:/system/zones/brand/brand-solaris10 |grep Version |awk \"{print \\\$2}\""
    output  = execute_command(options,message,command)
    if not output.match(/[0-9]/)
      message = "Information:\tInstalling branded zone packages"
      command = "pkg install pkg:/system/zones/brand/brand-solaris10"
      execute_command(options,message,command)
    end
  end
  return
end
def check_branded_zone_pkg ( ) if options [ 'host-os-release' ] . match ( / 11 / ) message = "Information:\tChecking branded zone support is installed" command = "pkg info pkg:/system/zones/brand/brand-solaris10 |grep Version |awk \"{print \\\$2}\"" output = execute_command ( options , message , command ) if not output . match ( / [0-9] / ) message = "Information:\tInstalling branded zone packages" command = "pkg install pkg:/system/zones/brand/brand-solaris10" execute_command ( options , message , command ) end end return end
Check branded zone support is installed
Check branded zone support is installed