qb update rutorrent overwrites config.php with empty values
Description of Bug
(Summarize the bug encountered concisely) running qb update rutorrent on in this case a UB16 system will mess up the rutorrent config.php placed in /srv/rutorrent/conf/config.php
It messes up the $pathToExternals = array( ending having this:
$pathToExternals = array( "php" => '', // Something like /usr/bin/php. If empty, will be found in PATH. "curl" => '', // Something like /usr/bin/curl. If empty, will be found in PATH. "gzip" => '', // Something like /usr/bin/gzip. If empty, will be found in PATH. "id" => '', // Something like /usr/bin/id. If empty, will be found in PATH. "stat" => '', // Something like /usr/bin/stat. If empty, will be found in PATH. );
and it should be kept like this:
$pathToExternals = array( "php" => '/usr/bin/php', // Something like /usr/bin/php. If empty, will be found in PATH. "curl" => '/usr/bin/curl', // Something like /usr/bin/curl. If empty, will be found in PATH. "gzip" => '/bin/gzip', // Something like /usr/bin/gzip. If empty, will be found in PATH. "id" => '/usr/bin/id', // Something like /usr/bin/id. If empty, will be found in PATH. "stat" => '/usr/bin/stat', // Something like /usr/bin/stat. If empty, will be found in PATH. "bzip2" => '/bin/bzip2', );
What is the current bug behavior?
(What actually happens)
What is the expected correct behavior?
(What you should see instead)
Steps to reproduce
(How one can reproduce the issue - this is very important)
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)
Pastebin link with replication https://pastebin.com/7yvvUTE5
Additional Information
(If you have any additional information you'd like to share)
Specifications
- Version:2.0.7
- OS/Distro: U16