diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-11-07 19:15:48 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-11-07 19:22:47 +0100 |
commit | 3b5152cdc1e3a97ade927b19fc8cacf1ebedb30a (patch) | |
tree | 7987827a6c77bb9a34e9be8aa7c41dee7600d247 /src/utils | |
parent | a440b9da47d40bbcaad2a64c54825393b43be988 (diff) |
tiptorrent: use absolute path to tiptorrent-clientv1.3.2-22
instead of using PATH to find it
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/tiptorrent.py | 3 |
1 files changed, 2 insertions, 1 deletions
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: |