Merge pull request #97 from iElectric/mpd.mkdir
mkdir musicDirecotry for mpd before startnig the service
This commit is contained in:
commit
f2a0710bee
|
@ -74,6 +74,7 @@ in {
|
|||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ pkgs.mpd ];
|
||||
script = "mpd --no-daemon ${mpdConf}";
|
||||
preStart = "mkdir -p ${cfg.dataDir} && chown -R mpd:mpd ${cfg.dataDir}";
|
||||
};
|
||||
|
||||
users.extraUsers.mpd = {
|
||||
|
|
Loading…
Reference in a new issue