summaryrefslogtreecommitdiff
path: root/libre/systemd/systemd-sysusers.hook
diff options
context:
space:
mode:
Diffstat (limited to 'libre/systemd/systemd-sysusers.hook')
-rw-r--r--libre/systemd/systemd-sysusers.hook2
1 files changed, 1 insertions, 1 deletions
diff --git a/libre/systemd/systemd-sysusers.hook b/libre/systemd/systemd-sysusers.hook
index b0888d7cf..6b8affa16 100644
--- a/libre/systemd/systemd-sysusers.hook
+++ b/libre/systemd/systemd-sysusers.hook
@@ -7,5 +7,5 @@ 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'
+Exec = /bin/sh -c 'while read -r f; do /usr/bin/systemd-sysusers "$(basename "$f")" ; done'
NeedsTargets