Skip to content

Commit

Permalink
Merge pull request #668 from tiffanycmeyer13/unidata_20.3.2
Browse files Browse the repository at this point in the history
Update awips_install.sh installer so it disables the excludes when in…
  • Loading branch information
tiffanycmeyer13 authored Feb 16, 2024
2 parents 52dda72 + 3405690 commit 291454d
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions awips_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# devorg: Unidata Program Center
# author: Michael James, Tiffany Meyer
# maintainer: <support-awips@unidata.ucar.edu>
# Date Updated: 2/13/2024
# Date Updated: 2/16/2024
# use: ./awips_install.sh (--cave|--edex|--database|--ingest|--help)

dir="$( cd "$(dirname "$0")" ; pwd -P )"
Expand Down Expand Up @@ -36,13 +36,13 @@ function check_yumfile {
fi

wget_url="https://downloads.unidata.ucar.edu/awips2/current/linux/${repofile}"
echo "wget -O /etc/yum.repos.d/awips2.repo ${wget_url}"
wget -O /etc/yum.repos.d/awips2.repo ${wget_url}
#echo "wget -O /etc/yum.repos.d/awips2.repo ${wget_url}"
#wget -O /etc/yum.repos.d/awips2.repo ${wget_url}

sed -i 's/enabled=0/enabled=1/' /etc/yum.repos.d/awips2.repo

yum clean all --enablerepo=awips2repo --disablerepo="*" 1>> /dev/null 2>&1
yum --enablerepo=awips2repo clean metadata
yum --enablerepo=awips2repo --disablerepo="*" --disableexcludes=main clean all 1>> /dev/null 2>&1
yum --enablerepo=awips2repo --disableexcludes=main clean metadata
}

function check_limits {
Expand Down Expand Up @@ -119,7 +119,7 @@ function check_cave {
}

function remove_cave {
yum groupremove awips2-cave -y
yum --disableexcludes=main groupremove awips2-cave -y
#yum remove awips2-* -y

if [[ $(rpm -qa | grep awips2-cave) ]]; then
Expand Down Expand Up @@ -345,8 +345,8 @@ function remove_edex {
echo "Now removing EDEX"
fi

yum groupremove awips2-server awips2-database awips2-ingest awips2-cave -y
yum remove awips2-* -y
yum --disableexcludes=main groupremove awips2-server awips2-database awips2-ingest awips2-cave -y
yum --disableexcludes=main remove awips2-* -y

if [[ $(rpm -qa | grep awips2 | grep -v cave) ]]; then
echo "
Expand Down Expand Up @@ -425,29 +425,29 @@ fi
case $key in
--cave)
cave_prep
yum groupinstall awips2-cave -y 2>&1 | tee -a /tmp/awips-install.log
yum --disableexcludes=main groupinstall awips2-cave -y 2>&1 | tee -a /tmp/awips-install.log
sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/awips2.repo
echo "CAVE has finished installing, the install log can be found in /tmp/awips-install.log"
;;
--server|--edex)
server_prep
yum install awips2-*post* -y
yum groupinstall awips2-server -y 2>&1 | tee -a /tmp/awips-install.log
yum --disableexcludes=main install awips2-*post* -y
yum --disableexcludes=main groupinstall awips2-server -y 2>&1 | tee -a /tmp/awips-install.log
sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/awips2.repo
sed -i 's/@LDM_PORT@/388/' /awips2/ldm/etc/registry.xml
echo "EDEX server has finished installing, the install log can be found in /tmp/awips-install.log"
;;
--database)
server_prep
yum groupinstall awips2-database -y 2>&1 | tee -a /tmp/awips-install.log
yum --disableexcludes=main groupinstall awips2-database -y 2>&1 | tee -a /tmp/awips-install.log
disable_ndm_update
sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/awips2.repo
sed -i 's/@LDM_PORT@/388/' /awips2/ldm/etc/registry.xml
echo "EDEX database has finished installing, the install log can be found in /tmp/awips-install.log"
;;
--ingest)
server_prep
yum groupinstall awips2-ingest -y 2>&1 | tee -a /tmp/awips-install.log
yum --disableexcludes=main groupinstall awips2-ingest -y 2>&1 | tee -a /tmp/awips-install.log
disable_ndm_update
sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/awips2.repo
sed -i 's/@LDM_PORT@/388/' /awips2/ldm/etc/registry.xml
Expand Down

0 comments on commit 291454d

Please sign in to comment.