From ed68cf0e399915498985571dbf57fcf0258c5ef5 Mon Sep 17 00:00:00 2001 From: Pedro Carvalho Date: Wed, 25 Sep 2024 11:22:15 -0300 Subject: [PATCH] fixes rocky installation --- install-linux.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-linux.sh b/install-linux.sh index 32e6760..b2940fc 100755 --- a/install-linux.sh +++ b/install-linux.sh @@ -377,8 +377,8 @@ disable_unsupported_services() { restart_services() { # We need to reload any of our changes to the systemd files before restarting systemctl daemon-reload - systemctl list-unit-files | grep 'cyral-' | grep enabled | awk '{print $1}' | xargs -r systemctl restart - systemctl list-unit-files | grep 'cyral-' | grep disabled | awk '{print $1}' | xargs -r systemctl stop + systemctl list-unit-files --state=enabled | grep 'cyral-' | awk '{print $1}' | xargs -r systemctl restart + systemctl list-unit-files --state=disabled | grep 'cyral-' | awk '{print $1}' | xargs -r systemctl stop } # Perform all Post Installation Tasks