nixos/docker-registry: always run systemctl of the currently running systemd
This commit is contained in:
parent
ea462c742e
commit
8aaca0addc
@ -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 New Issue
Block a user