diff options
-rw-r--r-- | debian/changelog | 4 | ||||
-rw-r--r-- | debian/postinst | 7 |
2 files changed, 3 insertions, 8 deletions
diff --git a/debian/changelog b/debian/changelog index 0e0ee0e..13e4ee6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,7 +6,9 @@ openvpn (2.4.9-3) UNRELEASED; urgency=medium - debian/rules: Change dh_installsystemd from "--restart-after-upgrade" to "--no-restart-after-upgrade -r". - Remove restart from debian/postinst. - * Migrate to debhelper 13: + * Migrate to debhelper 13. + * debian/postinst: + - Remove now useless code for version less than lt 2.3.2-6. -- Jörg Frings-Fürst <debian@jff.email> Sat, 02 May 2020 12:11:51 +0200 diff --git a/debian/postinst b/debian/postinst index af4e940..c377fc6 100644 --- a/debian/postinst +++ b/debian/postinst @@ -35,13 +35,6 @@ case "$1" in [ -e /dev/net ] || mkdir -m 755 /dev/net [ -d /dev/net -a ! -e /dev/net/tun ] && mknod /dev/net/tun c 10 200 fi - # move /run/openvpn.foo.pid to (subdir) /run/openvpn/foo.pid - if [ -n "$2" ] && dpkg --compare-versions "$2" lt 2.3.2-6 ; then - mkdir -p /run/openvpn - for f in $(ls /var/run/openvpn.*.pid /var/run/openvpn.*.status 2>/dev/null); do - mv "$f" "/run/openvpn/$(basename $f | sed 's/^openvpn\.//')" - done - fi for f in /run/sendsigs.omit.d/openvpn.*.pid; do [ -e "$f" ] && continue b="$(basename $f|sed 's/openvpn\.//')" |