summarylogtreecommitdiffstats
path: root/systemd-sysusers.hook
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado2017-01-17 01:08:01 -0300
committerAndré Fabian Silva Delgado2017-01-17 01:08:01 -0300
commitc0968e5bfdb65adf2a342be11294d4bad9028bf3 (patch)
treeea9788468b187aa511be69274d7aa06e66e9cb3b /systemd-sysusers.hook
parent1626da3617c9d1cbc79ac3c8646594acf3d4d91d (diff)
downloadaur-systemd-knock.tar.gz
Update to 232-1
Diffstat (limited to 'systemd-sysusers.hook')
-rw-r--r--systemd-sysusers.hook11
1 files changed, 11 insertions, 0 deletions
diff --git a/systemd-sysusers.hook b/systemd-sysusers.hook
new file mode 100644
index 000000000000..b0888d7cf94b
--- /dev/null
+++ b/systemd-sysusers.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Target = usr/lib/sysusers.d/*.conf
+
+[Action]
+Description = Updating system user accounts...
+When = PostTransaction
+Exec = /bin/sh -c 'while read -r f; do /usr/bin/systemd-sysusers "/$f" ; done'
+NeedsTargets