Merge pull request #8322 from unaizalakain/master

The user specified in the conf should run MPD
This commit is contained in:
Domen Kožar
2015-06-14 11:41:36 +02:00

View File

@@ -118,7 +118,7 @@ in {
preStart = "mkdir -p ${cfg.dataDir} && chown -R ${cfg.user}:${cfg.group} ${cfg.dataDir}";
script = "exec mpd --no-daemon ${mpdConf}";
serviceConfig = {
User = "mpd";
User = "${cfg.user}";
PermissionsStartOnly = true;
};
};