pyload / pyload

The free and open-source Download Manager written in pure Python
https://pyload.net
Other
3.23k stars 702 forks source link

restart of pyload fails when pyload is a bash script #4466

Open milahu opened 1 month ago

milahu commented 1 month ago

pyload should use os.exec pyload for restart, not python pyload

[2024-05-25 08:54:30]  INFO                pyload  pyLoad is restarting...
[2024-05-25 08:54:31]  INFO                pyload  Download aborted: Yf32ufm42N76kj89h56dqj9ixSJizy7320TOTlm2n_S06E07.rar
[2024-05-25 08:54:32]  INFO                pyload  Exiting core...
  File "/nix/store/z9qnzzn6rkplja6lk4viil6gy0603qs7-pyload-0.5.0b3.dev82/bin/pyload", line 2
    PATH=${PATH:+':'$PATH':'}
         ^
SyntaxError: invalid syntax
~ $ head -n3 /nix/store/z9qnzzn6rkplja6lk4viil6gy0603qs7-pyload-0.5.0b3.dev82/bin/pyload
#! /nix/store/h3bhzvz9ipglcybbcvkxvm4vg9lwvqg4-bash-5.2p26/bin/bash -e
PATH=${PATH:+':'$PATH':'}
PATH=${PATH/':''/nix/store/2nszsr6kyzs9pj3icanifbmpwmfcdwkm-python3.11-bitmath-1.3.3.1/bin'':'/':'}
GammaC0de commented 1 month ago

First of all, please enable debug mode so the logs are more verbose. Secondly, what do you mean by "pyload should use os.exec pyload for restart, not python pyload"