aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-02-15 22:09:05 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-02-15 22:09:05 +0300
commit7e53c43c0b5d95ba27fdc0b74616d275128026cc (patch)
tree8a3dd5847833bef3f6965450114d5ed2647b90c6
parentcd0c81bc61e3590f9007b56ec328006726bba230 (diff)
downloadswayrice-7e53c43c0b5d95ba27fdc0b74616d275128026cc.tar.gz
swayrice-7e53c43c0b5d95ba27fdc0b74616d275128026cc.zip
pacman mandb hook
-rwxr-xr-xartix.sh1
-rw-r--r--system/pacman.d/hooks/mandb.hook11
2 files changed, 12 insertions, 0 deletions
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