Mercurial > dropbear
diff debian/dropbear.postinst @ 469:8c2d2edadf2a
Update to debian 0.50-4 diff
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 27 Mar 2008 10:19:28 +0000 |
parents | c23c7f0f594c |
children | 7fc4ba3c1cbb |
line wrap: on
line diff
--- a/debian/dropbear.postinst Thu Feb 21 14:46:15 2008 +0000 +++ b/debian/dropbear.postinst Thu Mar 27 10:19:28 2008 +0000 @@ -69,3 +69,11 @@ /etc/init.d/dropbear restart fi fi + +if test -n "$2" && dpkg --compare-versions "$2" lt '0.50-4' && +update-service --check dropbear; then + update-service --remove /etc/dropbear 2>/dev/null || : + sleep 6 + rm -rf /var/run/dropbear /var/run/dropbear.log + update-service --add /etc/dropbear || : +fi