From 7e53c43c0b5d95ba27fdc0b74616d275128026cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Mon, 15 Feb 2021 22:09:05 +0300 Subject: pacman mandb hook --- artix.sh | 1 + system/pacman.d/hooks/mandb.hook | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 system/pacman.d/hooks/mandb.hook diff --git a/artix.sh b/artix.sh index ef786e0..f773186 100755 --- a/artix.sh +++ b/artix.sh @@ -29,6 +29,7 @@ cp system/resolvconf.conf /etc/ cp system/NetworkManager/NetworkManager.conf /etc/NetworkManager/NetworkManager.conf cp system/mkinitcpio.conf /etc/ cp system/pam.d/* /etc/pam.d/ +cp -r system/pacman.d/hooks /etc/pacman.d/ resolvconf -u diff --git a/system/pacman.d/hooks/mandb.hook b/system/pacman.d/hooks/mandb.hook new file mode 100644 index 0000000..de5971d --- /dev/null +++ b/system/pacman.d/hooks/mandb.hook @@ -0,0 +1,11 @@ +[Trigger] +Type = Path +Operation = Install +Operation = Upgrade +Operation = Remove +Target = usr/share/man/* + +[Action] +Description = Updating manual database... +When = PostTransaction +Exec = /usr/bin/mandb --quiet -- cgit v1.2.3