termux-packages/packages/snapcast-server/server-control_session_http...

35 lines
1.6 KiB
Diff

--- a/server/control_session_http.cpp
+++ b/server/control_session_http.cpp
@@ -41,11 +41,11 @@
" This webserver is a websocket endpoint for control clients (ws://<i>host</i>:1780/jsonrpc) and streaming clients"
" (ws://<i>host</i>:1780/stream), but it can also host simple web pages. To serve a web page, you must configure the"
" document root in the snapserver configuration file <b>snapserver.conf</b>, usually located in"
- " <b>/etc/snapserver.conf</b>"
+ " <b>@TERMUX_PREFIX@/etc/snapserver.conf</b>"
" </p>"
" <p>"
" The Snapserver installation should include a copy of <a href=\"https://github.com/badaix/snapweb\">Snapweb</a>,"
- " located in <b>/usr/share/snapserver/snapweb/</b><br>"
+ " located in <b>@TERMUX_PREFIX@/share/snapserver/snapweb/</b><br>"
" To activate it, please configure the <b>doc_root</b> as follows, and restart Snapserver to activate the changes:"
" </p>"
" <pre>"
@@ -56,7 +56,7 @@
"...\n"
"\n"
"# serve a website from the doc_root location\n"
- "doc_root = /usr/share/snapserver/snapweb/\n"
+ "doc_root = @TERMUX_PREFIX@/share/snapserver/snapweb/\n"
"\n"
"#\n"
"################################################</pre>"
@@ -241,7 +241,7 @@
if (settings_.doc_root.empty())
{
- std::string default_page = "/usr/share/snapserver/index.html";
+ std::string default_page = "@TERMUX_PREFIX@/share/snapserver/index.html";
struct stat buffer;
if (stat(default_page.c_str(), &buffer) == 0)
path = default_page;