Make ensure-garage a oneshot service

This commit is contained in:
Nicolas Jeannerod 2024-09-05 15:32:34 +02:00
parent 1932a131e0
commit 60cf77e66e

View file

@ -166,6 +166,9 @@ in {
systemd.services.ensure-garage = { systemd.services.ensure-garage = {
after = [ "garage.service" ]; after = [ "garage.service" ];
wantedBy = [ "garage.service" ]; wantedBy = [ "garage.service" ];
serviceConfig = {
Type = "oneshot";
};
path = [ cfg.package pkgs.perl pkgs.awscli ]; path = [ cfg.package pkgs.perl pkgs.awscli ];
script = '' script = ''
set -xeuo pipefail set -xeuo pipefail