hard depend on passwords

This commit is contained in:
oxapentane - 2023-06-10 23:27:19 +02:00
parent d119a7d93c
commit 57d182360b
Signed by: oxapentane
GPG Key ID: 91FA5E5BF9AA901C
1 changed files with 14 additions and 5 deletions

View File

@ -56,11 +56,20 @@ in
};
};
systemd.services.setup-docker-pws = {
description = "copy the user passwords to docker volume";
wantedBy = [ "jupyterlab-stateful.service" ];
serviceConfig.Type = "oneshot";
script = secret-setup;
systemd.services = {
setup-docker-pws = {
description = "copy the user passwords to docker volume";
wantedBy = [ "jupyterlab-stateful.service" ];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
};
script = secret-setup;
};
docker-jupyterlab-stateful = {
after = [ "setup-docker-pws" ];
requires = [ "setup-docker-pws" ];
};
};
}