termux-packages/packages/nzbget/options.cpp.patch
Marcel Dopita 3bb128bfec nzbget: Update from 19.1 to 20.0
Also fixes overwriting of config file during package upgrade. Use config in etc
as default instead (leaves config in users home to allow overriding).
2018-06-20 01:37:25 +02:00

17 lines
435 B
Diff

diff --git a/daemon/main/Options.cpp b/daemon/main/Options.cpp
index f41bd824..50fa8dd9 100644
--- a/daemon/main/Options.cpp
+++ b/daemon/main/Options.cpp
@@ -182,10 +182,7 @@ const int BoolCount = 12;
const char* PossibleConfigLocations[] =
{
"~/.nzbget",
- "/etc/nzbget.conf",
- "/usr/etc/nzbget.conf",
- "/usr/local/etc/nzbget.conf",
- "/opt/etc/nzbget.conf",
+ "@TERMUX_PREFIX@/etc/nzbget.conf",
nullptr
};
#endif