75. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 9/15/2018 10:47:18 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

75.1 Files compared

# Location File Last Modified
1 MHV_2018.4.0.0.zip\2018.4.0.0\national portal\mhv_source\mhv_devops\src\main\wlst\_deployment mhv_deploy.sh Thu Aug 23 21:39:14 2018 UTC
2 MHV_2018.4.0.0.zip\2018.4.0.0\national portal\mhv_source\mhv_devops\src\main\wlst\_deployment mhv_deploy.sh Sat Sep 15 20:30:16 2018 UTC

75.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 164
Changed 1 2
Inserted 0 0
Removed 0 0

75.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

75.4 Active regular expressions

No regular expressions were active.

75.5 Comparison detail

  1   #!/bin/bas h
  2  
  3   # Usage: . /mhv_deplo y.sh --sta ging-dir / opt/stage/ 2018.2.1.0  --address  t3://127. 0.0.1:7201  --user we blogic --t arget mhvS ervicesClu ster
  4  
  5   OPTIND=1          # R eset in ca se getopts  has been  used previ ously in t he shell.
  6  
  7   # Initiali ze our own  variables :
  8   STAGING_DI R=""
  9   WLS_ADMIN_ USERNAME=" AI "
  10   WLS_ADMIN_ PASSWORD=" "
  11   WLST_URI=" "
  12   WLS_TARGET =""
  13  
  14   POSITIONAL =()
  15   while [[ $ # -gt 0 ]]
  16   do
  17   key="$1"
  18  
  19   case $key  in
  20       -sd|-- staging-di r)
  21       STAGIN G_DIR="$2"
  22       shift  # past arg ument
  23       shift  # past val ue
  24       ;;
  25       -a|--a ddress)
  26       WLST_U RI="$2"
  27       shift  # past arg ument
  28       shift  # past val ue
  29       ;;
  30       -t|--t arget)
  31       WLS_TA RGET="$2"
  32       shift  # past arg ument
  33       shift  # past val ue
  34       ;;
  35       -u|--u ser)
  36       WLS_AD MIN_USERNA ME="$2"
  37       shift  # past arg ument
  38       shift  # past val ue
  39       ;;
  40       --defa ult)
  41       DEFAUL T=YES
  42       shift  # past arg ument
  43       ;;
  44       *)     # unknown  option
  45       POSITI ONAL+=("$1 ") # save  it in an a rray for l ater
  46       shift  # past arg ument
  47       ;;
  48   esac
  49   done
  50   set -- "${ POSITIONAL [@]}" # re store posi tional par ameters
  51  
  52   shift $((O PTIND-1))
  53  
  54   [ "$1" = " --" ] && s hift
  55  
  56   echo "Begi nning depl oyment of  all files  in locatio n: '${STAG ING_DIR}'. "
  57   echo
  58   echo "#### ########## ########## ########## ########## ########## ########## #########"
  59   echo "##                                                                              "
  60   echo "## W eblogic Se rver Hoste d @ '${WLS T_URI}'."
  61   echo "## W eblogic Ad min Userna me: '${WLS _ADMIN_USE RNAME}'."
  62   echo "## W ebLogic Ta rget: '${W LS_TARGET} '."
  63   echo "##                                                                              "
  64   echo "#### ########## ########## ########## ########## ########## ########## #########"
  65   echo
  66   echo
  67   echo -n "P lease ente r WebLogic  Admin Pas sword: "
  68   read -s WL S_ADMIN_PA SSWORD
  69   echo
  70  
  71   for DEPLOY MENT_FILE_ PATH in ${ STAGING_DI R}/*.war;  do
  72           DE PLOYMENT=$ {DEPLOYMEN T_FILE_PAT H##*/}
  73           AP P_NAME="$( cut -d- -f 1-4 <<<${D EPLOYMENT} )"
  74           ec ho "Undepl oying exis ting appli cation fro m target s ystem."
  75           #e cho "${MW_ HOME}/wlse rver/commo n/bin/wlst .sh wls-un deploy.py  ${WLS_ADMI N_USERNAME } ******** ******* ${ WLST_URI}  ${APP_NAME }"
  76           ${ MW_HOME}/w lserver/co mmon/bin/w lst.sh wls -undeploy. py ${WLS_A DMIN_USERN AME} ${WLS _ADMIN_PAS SWORD} ${W LST_URI} $ {APP_NAME}       
  77           
  78           ec ho "Deploy ing applic ation ${DE PLOYMENT}  to WebLogi c applicat ion server ."
  79           ${ MW_HOME}/w lserver/co mmon/bin/w lst.sh wls -manage-ap plication. py -u ${WL S_ADMIN_US ERNAME} -p  ${WLS_ADM IN_PASSWOR D} -a ${WL ST_URI} -n  ${DEPLOYM ENT} -f ${ DEPLOYMENT _FILE_PATH } -t ${WLS _TARGET}
  80   done
  81  
  82  
  83