summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-suid
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/postinst-suid')
-rw-r--r--autoscripts/postinst-suid6
1 files changed, 6 insertions, 0 deletions
diff --git a/autoscripts/postinst-suid b/autoscripts/postinst-suid
new file mode 100644
index 0000000..1294d31
--- /dev/null
+++ b/autoscripts/postinst-suid
@@ -0,0 +1,6 @@
+if [ -e /etc/suid.conf -a -x /usr/sbin/suidregister ]; then
+ suidregister -s #PACKAGE# /#FILE# #OWNER# #GROUP# #PERMS#
+else
+ chown #OWNER#.#GROUP# /#FILE#
+ chmod #PERMS# /#FILE#
+fi