mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-10 06:41:42 +02:00
users for snapclient and snapserver daemon
This commit is contained in:
parent
88cf84aa50
commit
0f2359c971
11 changed files with 64 additions and 22 deletions
|
@ -32,9 +32,9 @@ Config::Config()
|
|||
{
|
||||
string dir;
|
||||
if (getenv("HOME") == NULL)
|
||||
dir = "/var/lib/snapcast/";
|
||||
dir = "/var/lib/snapserver/";
|
||||
else
|
||||
dir = getenv("HOME") + string("/.config/snapcast/");
|
||||
dir = getenv("HOME") + string("/.config/snapserver/");
|
||||
int status = mkdirRecursive(dir.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
|
||||
if ((status != 0) && (errno != EEXIST))
|
||||
throw SnapException("failed to create settings directory: \"" + dir + "\": " + cpt::to_string(errno));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue