From bd5900ae5aacee273f61d07cb6965e8a609491da Mon Sep 17 00:00:00 2001 From: zhaominyong Date: Sat, 2 Apr 2022 16:41:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backup-daemon/mybackupmanager.cpp | 6 +++--- backup-daemon/systemrestoreproxy.cpp | 4 ++-- backup-daemon/udisksystemrestoreproxy.cpp | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/backup-daemon/mybackupmanager.cpp b/backup-daemon/mybackupmanager.cpp index 1bf317a..8fb006f 100755 --- a/backup-daemon/mybackupmanager.cpp +++ b/backup-daemon/mybackupmanager.cpp @@ -500,8 +500,8 @@ void MyBackupManager::setKysecStatus(bool status) // 安全保护已开启 m_bOpenKysec = true; Utils::setKysecStatus(false); - // 停止安全防护 - QProcess::execute("systemctl stop kysec-init.service"); + // 开启安全防护 + // QProcess::execute("systemctl start kysec-init.service"); } else { m_bOpenKysec = false; } @@ -510,7 +510,7 @@ void MyBackupManager::setKysecStatus(bool status) m_bStartKysecDeamon = true; Utils::setKysecDaemon(false); // 停止安全防护 - QProcess::execute("systemctl stop kysec-init.service"); + // QProcess::execute("systemctl stop kysec-init.service"); } else { m_bStartKysecDeamon = false; } diff --git a/backup-daemon/systemrestoreproxy.cpp b/backup-daemon/systemrestoreproxy.cpp index 1ffd7cc..879922e 100755 --- a/backup-daemon/systemrestoreproxy.cpp +++ b/backup-daemon/systemrestoreproxy.cpp @@ -319,8 +319,8 @@ QStringList SystemRestoreProxy::getRsyncArgs(SystemRestoreScene scene) */ void SystemRestoreProxy::restoreSystem() { - // 停止安全防护, 迁移到业务开始的锁定中去 - // QProcess::execute("systemctl stop kysec-init.service"); + // 停止安全防护 + QProcess::execute("systemctl stop kysec-init.service"); // 本地系统备份没有img挂载,故下面两个路径相等 m_srcPath = m_backupPath; diff --git a/backup-daemon/udisksystemrestoreproxy.cpp b/backup-daemon/udisksystemrestoreproxy.cpp index 7cb1eb0..b240c90 100755 --- a/backup-daemon/udisksystemrestoreproxy.cpp +++ b/backup-daemon/udisksystemrestoreproxy.cpp @@ -365,8 +365,8 @@ void UDiskSystemRestoreProxy::restoreSystem() return ; } - // 停止安全防护, 迁移到业务开始的锁定中去 - // QProcess::execute("systemctl stop kysec-init.service"); + // 停止安全防护 + QProcess::execute("systemctl stop kysec-init.service"); QString destPath = Utils::getSysRootPath();