From 3b5152cdc1e3a97ade927b19fc8cacf1ebedb30a Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 7 Nov 2024 19:15:48 +0100 Subject: tiptorrent: use absolute path to tiptorrent-client instead of using PATH to find it --- src/utils/tiptorrent.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/tiptorrent.py b/src/utils/tiptorrent.py index 7392725..88225cf 100644 --- a/src/utils/tiptorrent.py +++ b/src/utils/tiptorrent.py @@ -16,6 +16,7 @@ from src.log import OgError from src.utils.cache import * from src.utils.fs import compute_md5 +TIPTORRENT_BIN='/opt/opengnsys/bin/tiptorrent-client' def tip_fetch_csum(tip_addr, image_name): """ @@ -101,7 +102,7 @@ def tip_client_get(tip_addr, image_name): logging.info(f'Fetching image {image_name}.img from tiptorrent server at {tip_addr}') logging.info('*DO NOT REBOOT OR POWEROFF* the client during this time') - cmd = f'tiptorrent-client {tip_addr} {image_name}.img' + cmd = f'{TIPTORRENT_BIN} {tip_addr} {image_name}.img' logfile = open('/tmp/command.log', 'wb', 0) try: -- cgit v1.2.3-18-g5258