From 7a6bfb4bbee9c224d5fd7b3fe62c7234a6804250 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Thu, 28 Jul 2016 16:04:02 +0300 Subject: Fix bug, that caused dh-runit to attemt to create directory under /. --- debian/changelog | 7 +++++++ dh_runit | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index e615271..28bf913 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +dh-runit (0.4) UNRELEASED; urgency=medium + + * Fix bug, that caused dh-runit to attemt to create directory + under /. + + -- Dmitry Bogatov Thu, 28 Jul 2016 15:36:43 +0300 + dh-runit (0.3) unstable; urgency=medium * Support for `runlevels'. Now, runscripts are installed for diff --git a/dh_runit b/dh_runit index 01bbf67..dec63dd 100755 --- a/dh_runit +++ b/dh_runit @@ -89,7 +89,7 @@ PKG: foreach my $pkg (@{$dh{DOPACKAGES}}) { } make_symlink("/etc/sv/$name/supervise", "/var/lib/runit/supervise/$name", $tmp); - install_dir("/var/lib/runit/supervise/$name"); + install_dir("$tmp/var/lib/runit/supervise/$name"); if ($enable eq 'enable' && !$dh{NO_ENABLE}) { runit_autoscript($pkg, 'postinst', "s/#NAME#/$name/"); -- cgit v1.2.3