summaryrefslogtreecommitdiff
path: root/runit-helper
diff options
context:
space:
mode:
authorDmitry Bogatov <KAction@debian.org>2019-03-05 15:17:43 +0000
committerDmitry Bogatov <KAction@debian.org>2019-03-05 15:17:43 +0000
commitbad883cd8c4e4a2a520015141a4b685a85c450ba (patch)
treeb1237bbf3475f3d2fe178dd34a839b2a44da703c /runit-helper
parent51fb67fb3fcec62888e0eccfaaaf366da1a2d31d (diff)
Correctly create symlinks in /etc/service in post-inst on first revision of package, that introduced runscript. (Closes: #923233)
Diffstat (limited to 'runit-helper')
-rwxr-xr-xrunit-helper3
1 files changed, 2 insertions, 1 deletions
diff --git a/runit-helper b/runit-helper
index 051cbfa..a9cab5b 100755
--- a/runit-helper
+++ b/runit-helper
@@ -23,7 +23,8 @@ postinst () {
23 23
24 # Fresh installation (not upgrade). It is important to not override 24 # Fresh installation (not upgrade). It is important to not override
25 # local admin decision (see #899242). 25 # local admin decision (see #899242).
26 if [ "${ENABLE}" = yes ] && [ -z "${previous}" ] ; then 26 if [ "${ENABLE}" = yes ] && \
27 dpkg --compare-versions "${previous}" '<<' "${SINCE}" ; then
27 ln -sf "/etc/sv/$NAME" "/etc/runit/runsvdir/default/$NAME" 28 ln -sf "/etc/sv/$NAME" "/etc/runit/runsvdir/default/$NAME"
28 fi 29 fi
29} 30}