diff options
Diffstat (limited to 'debian/dropbear.postinst')
-rw-r--r-- | debian/dropbear.postinst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/dropbear.postinst b/debian/dropbear.postinst index e51e2b7..7c95cfa 100644 --- a/debian/dropbear.postinst +++ b/debian/dropbear.postinst @@ -69,3 +69,11 @@ if test -x /etc/init.d/dropbear; then /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 |