From 7f6838b9795f29975845202317bce8f1240e775e Mon Sep 17 00:00:00 2001 From: lihaipeng Date: Tue, 27 Jun 2023 09:45:29 +0800 Subject: [PATCH] centos8 to 1050a: add reboot after migration --- centos8/centos82uos.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/centos8/centos82uos.py b/centos8/centos82uos.py index 2e74f0b..a7e9c08 100755 --- a/centos8/centos82uos.py +++ b/centos8/centos82uos.py @@ -424,7 +424,7 @@ EOF' subprocess.run('dnf swap -y centos-logos-ipa uos-logos-ipa', shell=True) except: pass - + try: subprocess.check_call('rpm -q centos-logos-httpd', shell=True) subprocess.run('dnf swap -y centos-logos-httpd uos-logos-httpd', shell=True) @@ -511,4 +511,5 @@ if __name__ == "__main__": parser.add_argument('-r', action='store_true', help='reinstall all CentOS RPMs with UniontechOS RPMs (Note: This is not necessary for support)') parser.add_argument('-V', action='store_true', help='Verify RPM information before and after the switch') args=parser.parse_args() - sys.exit(main(args.r, args.V)) + main(args.r, args.V) + os.system("reboot") -- Gitee