-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 command -v 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