diff options
author | Dmitry Bogatov <KAction@gnu.org> | 2016-07-28 16:04:02 +0300 |
---|---|---|
committer | Dmitry Bogatov <KAction@gnu.org> | 2016-07-28 16:04:02 +0300 |
commit | 7a6bfb4bbee9c224d5fd7b3fe62c7234a6804250 (patch) | |
tree | 583b57ce33750d30024a3fdc3a063933b0c39946 /dh_runit | |
parent | e5cd02f1685b1028606734ea650ac6532eb9bf0c (diff) |
Fix bug, that caused dh-runit to attemt to create directory under /.
Diffstat (limited to 'dh_runit')
-rwxr-xr-x | dh_runit | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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/"); |