diff options
author | unknown <unknown> | 2003-07-28 18:43:17 +0000 |
---|---|---|
committer | unknown <unknown> | 2003-07-28 18:43:17 +0000 |
commit | e5474c83813a7795bb9ee043f65fcf57167039f7 (patch) | |
tree | 47c37051ccc443d59968a2acd5d86a53b3c4a6b0 /autoscripts/postinst-suid | |
parent | d579dae0cf159c50dcd902ff4a35590f7dcff395 (diff) | |
parent | 63e45075003b1d9fcff097b5644a81131c346653 (diff) | |
download | debhelper-version_2.0.22.tar.gz |
r621: This commit was manufactured by cvs2svn to create tag 'rel-2-0-22'.version_2.0.22
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 |