summaryrefslogtreecommitdiff
path: root/dh_runit
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 /dh_runit
parente5cd02f1685b1028606734ea650ac6532eb9bf0c (diff)
Fix bug, that caused dh-runit to attemt to create directory under /.
Diffstat (limited to 'dh_runit')
-rwxr-xr-xdh_runit2
1 files changed, 1 insertions, 1 deletions
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/");