forked from mirrors/nixpkgs
Merge pull request #133834 from lovesegfault/hqplayerd-fix-restart-triggers
nixos/hqplayerd: don't add config to restartTriggers when it doesn't exist
This commit is contained in:
commit
5f1c7b7fd1
|
@ -110,7 +110,7 @@ in
|
|||
|
||||
unitConfig.ConditionPathExists = [ configDir stateDir ];
|
||||
|
||||
restartTriggers = [ config.environment.etc."hqplayer/hqplayerd.xml".source ];
|
||||
restartTriggers = optionals (cfg.config != null) [ config.environment.etc."hqplayer/hqplayerd.xml".source ];
|
||||
|
||||
preStart = ''
|
||||
cp -r "${pkg}/var/lib/hqplayer/web" "${stateDir}"
|
||||
|
|
Loading…
Reference in a new issue