summarylogtreecommitdiffstats
path: root/systemd-tmpfiles.hook
diff options
context:
space:
mode:
authorYurii Kolesnykov2017-01-23 16:59:50 +0300
committerYurii Kolesnykov2017-01-23 17:01:54 +0300
commitc3ff255f8a97c99c062d422a5a793c00864d4064 (patch)
tree1706cab4553f8bebe94157158a94c537e8ca200b /systemd-tmpfiles.hook
parentb72b01bb7eb2f8a3e7ff07f5cff3afeb68a6d84d (diff)
downloadaur-c3ff255f8a97c99c062d422a5a793c00864d4064.tar.gz
port arch changes
Diffstat (limited to 'systemd-tmpfiles.hook')
-rw-r--r--systemd-tmpfiles.hook11
1 files changed, 11 insertions, 0 deletions
diff --git a/systemd-tmpfiles.hook b/systemd-tmpfiles.hook
new file mode 100644
index 000000000000..a2c5e3ef07ad
--- /dev/null
+++ b/systemd-tmpfiles.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Target = usr/lib/tmpfiles.d/*.conf
+
+[Action]
+Description = Creating temporary files...
+When = PostTransaction
+Exec = /bin/sh -c 'while read -r f; do /usr/bin/systemd-tmpfiles --create "/$f"; done'
+NeedsTargets