summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Bogatov <KAction@gnu.org>2016-07-28 16:04:02 +0300
committerDmitry Bogatov <KAction@gnu.org>2016-07-28 16:04:02 +0300
commit7a6bfb4bbee9c224d5fd7b3fe62c7234a6804250 (patch)
tree583b57ce33750d30024a3fdc3a063933b0c39946
parente5cd02f1685b1028606734ea650ac6532eb9bf0c (diff)
Fix bug, that caused dh-runit to attemt to create directory under /.
-rw-r--r--debian/changelog7
-rwxr-xr-xdh_runit2
2 files changed, 8 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index e615271..28bf913 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
1dh-runit (0.4) UNRELEASED; urgency=medium
2
3 * Fix bug, that caused dh-runit to attemt to create directory
4 under /.
5
6 -- Dmitry Bogatov <KAction@gnu.org> Thu, 28 Jul 2016 15:36:43 +0300
7
1dh-runit (0.3) unstable; urgency=medium 8dh-runit (0.3) unstable; urgency=medium
2 9
3 * Support for `runlevels'. Now, runscripts are installed for 10 * 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}}) {
89 } 89 }
90 make_symlink("/etc/sv/$name/supervise", 90 make_symlink("/etc/sv/$name/supervise",
91 "/var/lib/runit/supervise/$name", $tmp); 91 "/var/lib/runit/supervise/$name", $tmp);
92 install_dir("/var/lib/runit/supervise/$name"); 92 install_dir("$tmp/var/lib/runit/supervise/$name");
93 93
94 if ($enable eq 'enable' && !$dh{NO_ENABLE}) { 94 if ($enable eq 'enable' && !$dh{NO_ENABLE}) {
95 runit_autoscript($pkg, 'postinst', "s/#NAME#/$name/"); 95 runit_autoscript($pkg, 'postinst', "s/#NAME#/$name/");