nixos/docker-registry: always run systemctl of the currently running systemd
This commit is contained in:
parent
ea462c742e
commit
8aaca0addc
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue