Allow pkgusrs to update system mandb via sudo
[pkgusr] / usr / lib / pkgusr / mandb
diff --git a/usr/lib/pkgusr/mandb b/usr/lib/pkgusr/mandb
new file mode 100755 (executable)
index 0000000..266fa57
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Copyright © 2021 Steve Youngs All rights reserved.
+# SPDX-License-Identifer: BSD-3-Clause
+
+####
+#
+#  Call mandb with sudo to update the system db
+#
+####
+
+[[ -x $(type -p sudo) ]] && sudo /usr/bin/mandb -q
+
+# Local variables:
+# sh-basic-offset: 4
+# End: