tiptorrent: use absolute path to tiptorrent-client

instead of using PATH to find it
master v1.3.2-22
OpenGnSys Support Team 2024-11-07 19:15:48 +01:00
parent a440b9da47
commit 3b5152cdc1
1 changed files with 2 additions and 1 deletions

View File

@ -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: