nixos/docker-registry: always run systemctl of the currently running systemd

This commit is contained in:
Florian Klink 2020-05-21 10:29:37 +02:00
parent ea462c742e
commit 8aaca0addc

View File

@ -138,7 +138,7 @@ in {
script = ''
${pkgs.docker-distribution}/bin/registry garbage-collect ${configFile}
${pkgs.systemd}/bin/systemctl restart docker-registry.service
/run/current-system/systemd/bin/systemctl restart docker-registry.service
'';
startAt = optional cfg.enableGarbageCollect cfg.garbageCollectDates;