Update needs_restarting.py

This commit is contained in:
Josh Patterson
2023-07-20 08:36:27 -04:00
committed by GitHub
parent 14c685ab10
commit e75d0c8094

View File

@@ -10,7 +10,7 @@ def check():
if path.exists('/var/run/reboot-required'):
retval = 'True'
elif
elif osfam == 'RedHat':
cmd = 'needs-restarting -r > /dev/null 2>&1'
try: