diff options
author | Bertrand Marc <beberking@gmail.com> | 2013-08-04 14:22:57 +0200 |
---|---|---|
committer | Bertrand Marc <beberking@gmail.com> | 2013-08-04 14:22:57 +0200 |
commit | d74e88d5768b9fd42f32a995ccb44701349c8fd2 (patch) | |
tree | 2611827882d815d40e8a55e98f9214f869a87914 /debian/gnunet-server.postinst | |
parent | fa698ae0061ebb30d8e6c10d4d79b7080ecbef9e (diff) |
gnunet-server.postinst: check the existence of a binary before changing its permissions (Closes: #688484).
Diffstat (limited to 'debian/gnunet-server.postinst')
-rw-r--r-- | debian/gnunet-server.postinst | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/debian/gnunet-server.postinst b/debian/gnunet-server.postinst index 76fb9a8..18e0252 100644 --- a/debian/gnunet-server.postinst +++ b/debian/gnunet-server.postinst @@ -86,18 +86,20 @@ case "${1}" in /usr/bin/gnunet-helper-vpn do # only do something when no setting exists - if ! dpkg-statoverride --list $file >/dev/null 2>&1 + if ! dpkg-statoverride --list $file >/dev/null 2>&1 && [ -e $file ] then chown root:${_GROUPNAME} $file chmod 4754 $file fi done - if ! dpkg-statoverride --list /usr/bin/gnunet-helper-dns >/dev/null 2>&1 + if ! dpkg-statoverride --list /usr/bin/gnunet-helper-dns >/dev/null 2>&1 \ + && [ -e /usr/bin/gnunet-helper-dns ] then chown root:${GNUNETDNS_GROUP} /usr/bin/gnunet-helper-dns chmod 4754 /usr/bin/gnunet-helper-dns fi - if ! dpkg-statoverride --list /usr/bin/gnunet-service-dns >/dev/null 2>&1 + if ! dpkg-statoverride --list /usr/bin/gnunet-service-dns >/dev/null 2>&1 \ + && [ -e /usr/bin/gnunet-service-dns ] then chown ${_USERNAME}:${GNUNETDNS_GROUP} /usr/bin/gnunet-service-dns chmod 2754 /usr/bin/gnunet-service-dns |