From bad883cd8c4e4a2a520015141a4b685a85c450ba Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Tue, 5 Mar 2019 15:17:43 +0000 Subject: Correctly create symlinks in /etc/service in post-inst on first revision of package, that introduced runscript. (Closes: #923233) --- runit-helper | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runit-helper') diff --git a/runit-helper b/runit-helper index 051cbfa..a9cab5b 100755 --- a/runit-helper +++ b/runit-helper @@ -23,7 +23,8 @@ postinst () { # Fresh installation (not upgrade). It is important to not override # local admin decision (see #899242). - if [ "${ENABLE}" = yes ] && [ -z "${previous}" ] ; then + if [ "${ENABLE}" = yes ] && \ + dpkg --compare-versions "${previous}" '<<' "${SINCE}" ; then ln -sf "/etc/sv/$NAME" "/etc/runit/runsvdir/default/$NAME" fi } -- cgit v1.2.3