summaryrefslogtreecommitdiff
path: root/runit-helper
diff options
context:
space:
mode:
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}