From 0dea6e07465ad3aaa031fa867792d58da88fe806 Mon Sep 17 00:00:00 2001 From: Ilia Date: Sat, 23 Apr 2022 21:03:03 +0300 Subject: [PATCH] Fix to only test the command presence --- makerpm.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makerpm.pl b/makerpm.pl index 308baa264..730722735 100755 --- a/makerpm.pl +++ b/makerpm.pl @@ -234,8 +234,8 @@ export config_dir var_dir perl autoos port login crypt host ssl nochown autothir chmod 600 \$tempdir/webmin-setup.out rm -f /var/lock/subsys/webmin cd /usr/libexec/webmin -# Fix to just always clear old mess for systemd -if [ -x "\$(command -v systemctl)" >/dev/null 2>&1 ] && [ -d "/etc/systemd" ]; then +# Fix to always clear old mess for systemd systems +if [ -x "\$(command -v systemctl)" >/dev/null 2>&1 ]; then rm -f /etc/sysconfig/daemons/webmin >/dev/null 2>&1 /dev/null 2>&1 /dev/null 2>&1