summarylogtreecommitdiffstats
path: root/systemtap.install
diff options
context:
space:
mode:
Diffstat (limited to 'systemtap.install')
-rw-r--r--systemtap.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/systemtap.install b/systemtap.install
new file mode 100644
index 000000000000..e9e6e982e2e6
--- /dev/null
+++ b/systemtap.install
@@ -0,0 +1,19 @@
+post_install() {
+ for _g in stapusr stapsys stapdev; do
+ getent group $_g >/dev/null || groupadd -r $_g
+ done
+ chgrp stapusr usr/bin/staprun
+ chmod 04110 usr/bin/staprun
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ userdel -rf archsocks
+ for _g in stapusr stapsys stapdev; do
+ groupdel $_g
+ done
+}
+