From 4f0e718cb289d5035acb00136f7b11dfc11f8b2f Mon Sep 17 00:00:00 2001 From: gsmith-sas <65406958+gsmith-sas@users.noreply.github.com> Date: Tue, 17 Dec 2024 14:34:40 -0500 Subject: [PATCH] Remove cleanup logic from migrate script --- logging/fb/migrate_fbstate_db.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/logging/fb/migrate_fbstate_db.sh b/logging/fb/migrate_fbstate_db.sh index 73160b55..57b47602 100755 --- a/logging/fb/migrate_fbstate_db.sh +++ b/logging/fb/migrate_fbstate_db.sh @@ -1,9 +1,8 @@ #! /bin/sh -# Copyright © 2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# Copyright © 2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 -cleanup="${CLEANUP:-false}" newFilename="${NEW_FILENAME:-v4m_fb.db}" newDir="${NEW_DIR:-/var/log/v4m-fb-storage}" oldFile="${OLD_FILE:-/var/log/sas_viya_flb.db}" @@ -15,10 +14,6 @@ if [ ! -f "$newFile" ]; then if [ -f "$oldFile" ]; then echo "INFO Migrating [$oldFile] to [$newFile]" cp $oldFile $newFile - if [ "$cleanup" == "true" ] && [ "$?" == "0" ]; then - echo "INFO Deleting [$newFile]" - rm -f $newFile - fi else echo "INFO No previous instance of [$oldFile] found" fi