diff options
author | Stonewall Jackson <stonewall@sacredheartsc.com> | 2023-03-23 09:09:56 -0400 |
---|---|---|
committer | Stonewall Jackson <stonewall@sacredheartsc.com> | 2023-03-23 09:09:56 -0400 |
commit | b31e702ae91726f5a946f061e11910e8e4519d16 (patch) | |
tree | fdf7ebb962ae50c9b53a0811b03b3dcb02f21565 /roles | |
parent | bfa1877a0a37eb621b70a1ba04ba3cbee1229523 (diff) | |
download | selfhosted-b31e702ae91726f5a946f061e11910e8e4519d16.tar.gz selfhosted-b31e702ae91726f5a946f061e11910e8e4519d16.zip |
dnf_automatic: fix systemctl invocation in restart script that is only valid for EL9
Diffstat (limited to 'roles')
-rw-r--r-- | roles/dnf_automatic/files/usr/local/sbin/dnf-auto-restart | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/dnf_automatic/files/usr/local/sbin/dnf-auto-restart b/roles/dnf_automatic/files/usr/local/sbin/dnf-auto-restart index 76cc2d4..530a860 100644 --- a/roles/dnf_automatic/files/usr/local/sbin/dnf-auto-restart +++ b/roles/dnf_automatic/files/usr/local/sbin/dnf-auto-restart @@ -13,7 +13,7 @@ SERVICES=() dnf needs-restarting --services | while read -r service; do if [[ $service = user@* ]]; then continue - elif [ "$(systemctl show "$service" -P RefuseManualStop)" = yes ]; then + elif [ "$(systemctl show "$service" --property RefuseManualStop --value)" = yes ]; then continue else SERVICES+=("$service") |