diff options
author | Dmitry Bogatov <KAction@gnu.org> | 2016-06-07 02:05:28 +0300 |
---|---|---|
committer | Dmitry Bogatov <KAction@gnu.org> | 2016-06-07 02:05:28 +0300 |
commit | 28dfe2564c8f6bc4422b4d1eee7d707190bea7db (patch) | |
tree | 854925356f7bfc4583108e0ac0ec0f46329e3397 | |
parent | 929b68010b357893a3d2e4515e1d6516f332cf98 (diff) |
Fix typos
-rwxr-xr-x | dh_runit | 2 | ||||
-rw-r--r-- | postinst-runit | 3 | ||||
-rw-r--r-- | prerm-runit | 2 |
3 files changed, 3 insertions, 4 deletions
@@ -89,7 +89,7 @@ PKG: foreach my $pkg (@{$dh{DOPACKAGES}}) { | |||
89 | } elsif ( -d $path) { | 89 | } elsif ( -d $path) { |
90 | doit('cp', '-r', $path, "$sv_dir/$name"); | 90 | doit('cp', '-r', $path, "$sv_dir/$name"); |
91 | } | 91 | } |
92 | if ($enable -eq 'enable' && !$DH{NO_ENABLE}) { | 92 | if ($enable eq 'enable' && !$dh{NO_ENABLE}) { |
93 | autoscript($pkg, 'postinst', 'postinst-runit', "s/#NAME#/$name/"); | 93 | autoscript($pkg, 'postinst', 'postinst-runit', "s/#NAME#/$name/"); |
94 | } | 94 | } |
95 | autoscript($pkg, 'prerm', 'prerm-runit', "s/#NAME#/$name/"); | 95 | autoscript($pkg, 'prerm', 'prerm-runit', "s/#NAME#/$name/"); |
diff --git a/postinst-runit b/postinst-runit index 3a51832..8b09a95 100644 --- a/postinst-runit +++ b/postinst-runit | |||
@@ -16,8 +16,7 @@ restart installation. | |||
16 | EOF | 16 | EOF |
17 | exit 1 | 17 | exit 1 |
18 | fi | 18 | fi |
19 | NAME=#NAME# | 19 | ln -s '/etc/sv/#NAME#' "$SV_DIR/" |
20 | ln -s "/etc/sv/$NAME" "$SV_DIR/$NAME" | ||
21 | 20 | ||
22 | 21 | ||
23 | 22 | ||
diff --git a/prerm-runit b/prerm-runit index 8dfa6b6..a919418 100644 --- a/prerm-runit +++ b/prerm-runit | |||
@@ -1 +1 @@ | |||
rm -f /etc/service/#NAME# \ No newline at end of file | rm -f /etc/service/#NAME# | ||