From f6f557d3d4f5237023fce74a1edd40797c297e59 Mon Sep 17 00:00:00 2001 From: Max Turri Date: Fri, 28 Jun 2024 10:21:28 -0700 Subject: [PATCH] Added code to cleanup dev-package-list clone after installation --- files/install/installCCS.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files/install/installCCS.sh b/files/install/installCCS.sh index 1a6cc32..20ca537 100755 --- a/files/install/installCCS.sh +++ b/files/install/installCCS.sh @@ -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) @@ -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