From 2c49775dcc16ab78b63cb432ab71f59a99890432 Mon Sep 17 00:00:00 2001 From: Barys Barysenka Date: Wed, 18 Mar 2026 04:47:42 -0400 Subject: [PATCH] feat(rear): remove legacy code * after changes in the ticket BCF-6344 certificate * directory for AuthTool on Linux will be located at /opt/MXB/var/storage/certificates BCF-6388: [REAR] Remove the legacy part of code about AuthTool certificate storage location --- .../COVE/default/400_restore_with_cove.sh | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/usr/share/rear/restore/COVE/default/400_restore_with_cove.sh b/usr/share/rear/restore/COVE/default/400_restore_with_cove.sh index 44e5968048..15ba028c20 100644 --- a/usr/share/rear/restore/COVE/default/400_restore_with_cove.sh +++ b/usr/share/rear/restore/COVE/default/400_restore_with_cove.sh @@ -8,7 +8,6 @@ readonly GREEN='\033[0;32m' readonly NC='\033[0m' # No color readonly COVE_CLIENT_TOOL="${COVE_INSTALL_DIR}/bin/ClientTool" -readonly COVE_AUTH_TOOL_DIR="/root/.auth-tool" SKIP_PROGRESS_BAR=0 @@ -120,15 +119,6 @@ function cove_move_dir_to_target() { ln -s "${TARGET_FS_ROOT}/${source_dir#/}" "${source_dir}" } -# Moves Cove installation files and credentials to target file system -function cove_move_files_to_target() { - # Move Backup manager installation files to target file system - cove_move_dir_to_target "${COVE_INSTALL_DIR}" - - # Move mTLS credentials to target file system - cove_move_dir_to_target "${COVE_AUTH_TOOL_DIR}" -} - # Waits for a new FileSystem restore session and gets its status # $1: prev sessions function cove_wait_for_new_session() { @@ -152,8 +142,8 @@ function cove_wait_for_new_session() { UserOutput " The System is now ready for restore." -# Move Backup manager installation files and credentials to target file system -cove_move_files_to_target +# Move Backup manager installation files to target file system +cove_move_dir_to_target "${COVE_INSTALL_DIR}" # Start Backup Manager cove_start_pc @@ -172,8 +162,6 @@ restore_args=( -session-search-policy OldestIfRequestedNotFound ) -[ -e "${COVE_AUTH_TOOL_DIR}" ] && restore_args+=( -exclude "${COVE_AUTH_TOOL_DIR}" ) - [ -z "${COVE_TIMESTAMP}" ] || restore_args+=( -time "${COVE_TIMESTAMP}" ) prompt="Select what to do"