arch-packages/systemtap/systemtap.install
Manuel 7afc2c3cea Add 'systemtap/' from commit '3995c198a8f8d57a162ee02e7910e4c0229e1c17'
git-subtree-dir: systemtap
git-subtree-mainline: b43228e4bd
git-subtree-split: 3995c198a8
2024-04-08 21:05:48 +02:00

18 lines
680 B
Bash

post_install() {
getent group stapusr >/dev/null || groupadd -g 156 -r stapusr 2>/dev/null || groupadd -r stapusr
getent group stapsys >/dev/null || groupadd -g 157 -r stapsys 2>/dev/null || groupadd -r stapsys
getent group stapdev >/dev/null || groupadd -g 158 -r stapdev 2>/dev/null || groupadd -r stapdev
getent group stapusr >/dev/null && chgrp stapusr /usr/bin/stapbpf
chmod 04110 /usr/bin/stapbpf
getent group stapusr >/dev/null && chgrp stapusr /usr/bin/staprun
chmod 04110 /usr/bin/staprun
echo "CONFIG_DEBUG_INFO is disabled on default. You need to recompile"
echo "the kernel with CONFIG_DEBUG_INFO enabled."
}
post_upgrade() {
post_install $1
}