3
0
Fork 0
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:
Bernardo Meurer 2021-08-13 22:40:02 +00:00 committed by GitHub
commit 5f1c7b7fd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}"