Skip to content

Commit

Permalink
IT-5368 Updated installCCS.sh script to work on the summit
Browse files Browse the repository at this point in the history
  • Loading branch information
mxturri authored and glennmorris committed May 20, 2024
1 parent 2c7145e commit aef0c32
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions files/install/installCCS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ if [ $# -eq 0 ]; then
exit 1
fi

ENVIRONMENT=$1
NODE_NAME=$2
TAG=$1
ENVIRONMENT=$2
NODE_NAME=$3

BASEDIR=$(dirname "$0")
DEV_PACKAGE_DIR="/lsst/ccsadm/dev-package-lists"
DEV_PACKAGE_DIR="/home/ccs/dev-package-lists"
RELEASE_INSTALL_SCRIPT="/lsst/ccsadm/release/bin/install.py"
CCS_INSTALL_DIR="/lsst/ccs/"$(date +%Y%m%d)

Expand All @@ -28,13 +29,21 @@ then

# Check that the dev-package-lists github project is up to date.
# If not abort.
if [ ! -d $DEV_PACKAGE_DIR ]; then
git clone https://github.com/lsst-camera-dh/dev-package-lists.git $DEV_PACKAGE_DIR
fi
cd $DEV_PACKAGE_DIR || exit
if ! git checkout "$TAG"; then
echo "Tag $TAG does not exist"
exit
fi

if ! gitPull=$(git pull); then
echo "Something went wrong when updating $DEV_PACKAGE_DIR: $?: $gitPull"
exit
fi
gitStatus=$(git status)
if [[ $gitStatus != *"nothing to commit, working directory clean"* ]]; then
if [[ $gitStatus != *"nothing to commit, working tree clean"* ]]; then
echo Directory $DEV_PACKAGE_DIR is not up to date. Exiting.
exit
fi
Expand Down

0 comments on commit aef0c32

Please sign in to comment.