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 | |
parent | e5cd02f1685b1028606734ea650ac6532eb9bf0c (diff) |
Fix bug, that caused dh-runit to attemt to create directory under /.
-rw-r--r-- | debian/changelog | 7 | ||||
-rwxr-xr-x | dh_runit | 2 |
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 @@ | |||
1 | dh-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 | |||
1 | dh-runit (0.3) unstable; urgency=medium | 8 | dh-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 |
@@ -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/"); |