about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-04-12 03:42:13 +0200
committeraszlig <aszlig@redmoonstudios.org>2016-04-12 03:42:13 +0200
commita41b109bc10e66824af5e1f150cb741f9f9399c2 (patch)
tree0cee8f306bd1f8b2a6ad285e9c45c63dec09fb12 /pkgs
parent9586795ef27ac4d406c10c12f92fc735b5f4ff24 (diff)
downloadnixlib-a41b109bc10e66824af5e1f150cb741f9f9399c2.tar
nixlib-a41b109bc10e66824af5e1f150cb741f9f9399c2.tar.gz
nixlib-a41b109bc10e66824af5e1f150cb741f9f9399c2.tar.bz2
nixlib-a41b109bc10e66824af5e1f150cb741f9f9399c2.tar.lz
nixlib-a41b109bc10e66824af5e1f150cb741f9f9399c2.tar.xz
nixlib-a41b109bc10e66824af5e1f150cb741f9f9399c2.tar.zst
nixlib-a41b109bc10e66824af5e1f150cb741f9f9399c2.zip
nixos/taskserver: Don't change imperative users
Whenever the nixos-taskserver tool was invoked manually for creating an
organisation/group/user we now add an empty file called .imperative to
the data directory.

During the preStart of the Taskserver service, we use process-json which
in turn now checks whether those .imperative files exist and if so, it
doesn't do anything with it.

This should now ensure that whenever there is a manually created user,
it doesn't get killed off by the declarative configuration in case it
shouldn't exist within that configuration.

In addition, we also add a small subtest to check whether this is
happening or not and fail if the imperatively created user got deleted
by process-json.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs')
0 files changed, 0 insertions, 0 deletions