From 57547b352533c4373d0fcc0e36ab2e054e81b9f0 Mon Sep 17 00:00:00 2001 From: wangsong Date: Thu, 2 Dec 2021 17:09:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=94=99=E8=AF=AF=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/kylin-system-updater | 5 ----- 1 file changed, 5 deletions(-) diff --git a/backend/kylin-system-updater b/backend/kylin-system-updater index dc2a2fc..f229f07 100755 --- a/backend/kylin-system-updater +++ b/backend/kylin-system-updater @@ -17,8 +17,6 @@ gettext.bindtextdomain('kylin-system-updater', '/usr/share/locale') gettext.textdomain('kylin-system-updater') _ = gettext.gettext -import time -from SystemUpdater.Core.utils import (unLockedEnableShutdown,LockedPreventShutdown) #定义日志的格式 FORMAT = '%(asctime)-15s %(levelname)s:%(message)s' @@ -78,7 +76,4 @@ if __name__ == "__main__": if app.configs.getWithDefault("SystemStatus", "isabnormalreboot", False) == True: app.start_update() - LockedPreventShutdown() - time.sleep(10) - unLockedEnableShutdown() app.run() \ No newline at end of file