Skip to content

Commit

Permalink
Added code to cleanup dev-package-list clone after installation
Browse files Browse the repository at this point in the history
  • Loading branch information
mxturri committed Jun 28, 2024
1 parent 3beb65e commit f6f557d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion files/install/installCCS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ENVIRONMENT=$2
NODE_NAME=$3

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

Expand Down Expand Up @@ -64,6 +64,9 @@ then

$RELEASE_INSTALL_SCRIPT --ccs_inst_dir "$CCS_INSTALL_DIR" "$DEV_PACKAGE_DIR/$ENVIRONMENT/$NODE_NAME/ccsApplications.txt"

# Cleanup any existing dev-package-lists installation
rm -rf $DEV_PACKAGE_DIR

else
echo "$VERIFY_USER"
fi

0 comments on commit f6f557d

Please sign in to comment.