• Setting sv_downloadurl from the command line - escaping issue
    2 replies, posted
I'm trying to set the sv_downloadurl for my server from the command line (rather than server.cfg), but I'm running into a strange issue. In server.cfg the following will work: sv_download_url "http://mydomain.com/ However, when I try to set this parameter on the command line when launching srcds: +sv_download_url "http://mydomain.com" The // gets treated as comment syntax for some weird reason, and from the server console I see: sv_downloadurl "sv_downloadurl" = "http:" ( def. "" ) How can I avoid this happening? I've already tried the obvious of adding backslash escapes but these don't work. The reason I want to set this value on the command line is because I'm using Docker and I want to have a generic image with all options specified at runtime.
Try this +sv_download_url "http:\/\/mydomain.com"
Thanks for the suggestion, but you missed the second last line of my post. Doing that just ends up with URL being set to "http:\/\/mydomain.com" verbatim.
Sorry, you need to Log In to post a reply to this thread.