From 7c369ae36bf56ed1b829210ee01dff52e1a3aca7 Mon Sep 17 00:00:00 2001 From: clore Date: Tue, 10 Dec 2024 23:54:59 +0000 Subject: [PATCH] in case we are already in progress of driver update on hive, we can allow to stop docker --- hosting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosting.py b/hosting.py index 1eb91b2..b9d53bb 100644 --- a/hosting.py +++ b/hosting.py @@ -35,7 +35,7 @@ elif config.service: xfs_state = xfs.init() if os.path.isfile("/opt/clore-hosting/.run_hive_driver_update"): - utils.run_command("PATH=/hive/bin:/hive/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:./ nvidia-driver-update http://45.12.132.34/NVIDIA-Linux-x86_64-550.135.run --force") + utils.run_command("systemctl stop docker && PATH=/hive/bin:/hive/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:./ nvidia-driver-update http://45.12.132.34/NVIDIA-Linux-x86_64-550.135.run --force") utils.run_command("systemctl restart docker") os.remove("/opt/clore-hosting/.run_hive_driver_update") if os.path.isfile(config.restart_docker_flag_file):