From fc35408ab60287a4e978ba93e61c2ded44342e7d Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Thu, 9 Jun 2016 18:50:22 +0300 Subject: Improve handling of maintainer scripts * checking for /etc/service symlink is moved into preinst * runscripts are enabled in postinst * runscripts are disables in prerm * supervise directory is purged on 'postrm purge' --- postinst-runit | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'postinst-runit') diff --git a/postinst-runit b/postinst-runit index 7c21f0e..1955857 100644 --- a/postinst-runit +++ b/postinst-runit @@ -1,20 +1,3 @@ -SV_ABS_DIR=/var/lib/runit/service SV_DIR=/etc/service -mkdir -p "$SV_ABS_DIR" -if [ ! -e "$SV_DIR" ] ; then - ln -s "$SV_ABS_DIR" "$SV_DIR" -fi - -if [ "$(readlink -f "$SV_DIR")" != "$SV_ABS_DIR" ] ; then - cat <