From be2b24d26dff669554bc1ce5b8fe9311020ffca6 Mon Sep 17 00:00:00 2001 From: eSh Date: Sun, 18 Sep 2022 15:06:52 +0200 Subject: [PATCH] use only filenames for post scripts --- fixes-package.install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fixes-package.install b/fixes-package.install index 455226c..3eb02a4 100644 --- a/fixes-package.install +++ b/fixes-package.install @@ -1,9 +1,9 @@ post_install() { - find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -print0 | xargs -0 systemctl --user enable - find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -print0 | xargs -0 systemctl --user start + find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --user enable + find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --user start } post_upgrade() { - find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -print0 | xargs -0 systemctl --user enable - find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -print0 | xargs -0 systemctl --user restart + find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --user enable + find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --user restart }