Skip to content

Commit

Permalink
Remove cleanup logic from migrate script
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmith-sas committed Dec 17, 2024
1 parent 1fc0c7f commit 4f0e718
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions logging/fb/migrate_fbstate_db.sh
Original file line number Diff line number Diff line change
@@ -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}"
Expand All @@ -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
Expand Down

0 comments on commit 4f0e718

Please sign in to comment.