mirror of https://git.48k.eu/ogclient
tiptorrent: use absolute path to tiptorrent-client
instead of using PATH to find itmaster v1.3.2-22
parent
a440b9da47
commit
3b5152cdc1
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue