From 63a2e3e8bcd92f56d24b9317b1a2c90cfb56703b Mon Sep 17 00:00:00 2001 From: iliajie Date: Sun, 3 Jul 2022 02:19:36 +0300 Subject: [PATCH] Revert "Add `kill` command fall-back (just in case)" This reverts commit 6a68cc8149772568d762844f0b46ab774037deb2. --- init/atboot.pl | 2 +- init/updateboot.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/init/atboot.pl b/init/atboot.pl index eebcbb816..22c2d1583 100755 --- a/init/atboot.pl +++ b/init/atboot.pl @@ -8,7 +8,7 @@ $product = $ARGV[0] || "webmin"; $ucproduct = ucfirst($product); $< == 0 || die "atboot.pl must be run as root"; -my $kill = &has_command("kill") || '/bin/kill'; +my $kill = &has_command("kill"); if ($init_mode eq "osx") { # Darwin System diff --git a/init/updateboot.pl b/init/updateboot.pl index 08d8af894..ee76a3d59 100755 --- a/init/updateboot.pl +++ b/init/updateboot.pl @@ -21,7 +21,7 @@ if ($product) { unlink("$p/$product"); } my $temp = &transname(); - my $killcmd = &has_command('kill') || '/bin/kill'; + my $killcmd = &has_command('kill'); $ENV{'WEBMIN_KILLCMD'} = $killcmd; ©_source_dest("$root_directory/webmin-systemd", "$temp"); my $lref = &read_file_lines($temp);