From 45b77a57ac2386b05a979713c16a024948ff3034 Mon Sep 17 00:00:00 2001 From: AlexBocken Date: Mon, 30 Jan 2023 16:41:47 +0100 Subject: [PATCH] patch mailsync pacman hook --- .config/pacman/mutt_wizard_cronie_patch.hook | 8 ++++++++ .local/bin/tools/patch_mailsync | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 .config/pacman/mutt_wizard_cronie_patch.hook create mode 100755 .local/bin/tools/patch_mailsync diff --git a/.config/pacman/mutt_wizard_cronie_patch.hook b/.config/pacman/mutt_wizard_cronie_patch.hook new file mode 100644 index 0000000..4ee194b --- /dev/null +++ b/.config/pacman/mutt_wizard_cronie_patch.hook @@ -0,0 +1,8 @@ +[Trigger] + Operation = Upgrade + Type = Package + Target = mutt-wizard* +[Action] + Description = Patch for Notifications using cronie + When = PostTransaction + Exec = /usr/local/bin/patch_mailsync diff --git a/.local/bin/tools/patch_mailsync b/.local/bin/tools/patch_mailsync new file mode 100755 index 0000000..a89aee5 --- /dev/null +++ b/.local/bin/tools/patch_mailsync @@ -0,0 +1,2 @@ +#!/bin/sh +sudo sed -i '/case "$(readlink -f \/sbin\/init)" in/,+2d' $(which mailsync)