2017-03-27 21:15:49 +02:00
|
|
|
post_install() {
|
2024-04-08 21:54:49 +02:00
|
|
|
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
|
2018-02-24 20:28:27 +01:00
|
|
|
|
2024-04-08 21:54:49 +02:00
|
|
|
getent group stapusr >/dev/null && chgrp stapusr /usr/bin/stapbpf
|
|
|
|
chmod 04110 /usr/bin/stapbpf
|
2018-02-24 20:28:27 +01:00
|
|
|
|
2024-04-08 21:54:49 +02:00
|
|
|
getent group stapusr >/dev/null && chgrp stapusr /usr/bin/staprun
|
|
|
|
chmod 04110 /usr/bin/staprun
|
2018-02-24 20:28:27 +01:00
|
|
|
|
2024-04-08 21:54:49 +02:00
|
|
|
echo "CONFIG_DEBUG_INFO is disabled on default. You need to recompile"
|
|
|
|
echo "the kernel with CONFIG_DEBUG_INFO enabled."
|
2017-03-27 21:15:49 +02:00
|
|
|
}
|
2018-02-24 20:28:27 +01:00
|
|
|
|
|
|
|
post_upgrade() {
|
2024-04-08 21:54:49 +02:00
|
|
|
post_install $1
|
2018-02-24 20:28:27 +01:00
|
|
|
}
|