From 9d36b7c0e4276563ff9d878cdbcb8b068b656d08 Mon Sep 17 00:00:00 2001 From: Ilia Date: Thu, 16 Jun 2022 00:58:31 +0300 Subject: [PATCH] Fix to use API to check on command --- setup.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.pl b/setup.pl index 2702a6b4a..a9198766e 100755 --- a/setup.pl +++ b/setup.pl @@ -636,8 +636,7 @@ else { symlink("$config_directory/.reload-init", "$config_directory/reload"); # For systemd - my $systemctlcmd = `which systemctl`; - $systemctlcmd =~ s/\s+$//; + my $systemctlcmd = &has_command('systemctl'); if (-x $systemctlcmd) { # Clear existing