]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postinst-suid
Updated French man page translation. Closes: #685560
[debhelper.git] / autoscripts / postinst-suid
index 1294d313a63dfa4d695d50264eaf3d301decc980..db4bc6ddbca64e2d8dd0f4750b7d745b7a2858fa 100644 (file)
@@ -1,6 +1,8 @@
-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#
+if [ "$1" = "configure" ]; then
+       if which suidregister >/dev/null 2>&1 && [ -e /etc/suid.conf ]; then
+               suidregister -s #PACKAGE# /#FILE# #OWNER# #GROUP# #PERMS#
+       elif [ -e /#FILE# ]; then
+               chown #OWNER#:#GROUP# /#FILE#
+               chmod #PERMS# /#FILE#
+       fi
 fi