diff options
author | unknown <unknown> | 2003-07-28 18:43:18 +0000 |
---|---|---|
committer | unknown <unknown> | 2003-07-28 18:43:18 +0000 |
commit | 7e1b5ccf5c7ae50d3b78c3ffba0ae29fd928ec60 (patch) | |
tree | 47c37051ccc443d59968a2acd5d86a53b3c4a6b0 /autoscripts/postinst-suid | |
parent | d579dae0cf159c50dcd902ff4a35590f7dcff395 (diff) | |
parent | 63e45075003b1d9fcff097b5644a81131c346653 (diff) | |
download | debhelper-version_2.0.23.tar.gz |
r622: This commit was manufactured by cvs2svn to create tag 'rel-2-0-23'.version_2.0.23
Diffstat (limited to 'autoscripts/postinst-suid')
-rw-r--r-- | autoscripts/postinst-suid | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/autoscripts/postinst-suid b/autoscripts/postinst-suid index d0d16c06..dcc277fd 100644 --- a/autoscripts/postinst-suid +++ b/autoscripts/postinst-suid @@ -1,8 +1,6 @@ -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 +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 |