From 64d77ae6e75d2a2156447725b7696018b0a09309 Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev Date: Sat, 23 Jan 2021 15:06:43 +0300 Subject: [PATCH] Fix to lowercase output when testing https://github.com/webmin/webmin/commit/23adcc8bc0b6b7d64616f6a95a327676fd3c33ab --- init/init-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/init-lib.pl b/init/init-lib.pl index a659e6b27..b7c3286dc 100755 --- a/init/init-lib.pl +++ b/init/init-lib.pl @@ -549,7 +549,7 @@ elsif ($init_mode eq "systemd") { else { my $out = &backquote_command("systemctl is-enabled ". quotemeta($unit)." 2>&1"); - if ($out =~ /no such file/i) { + if (lc($out) =~ /no such file/) { return 0; } else {