mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-03-23 21:12:39 +01:00
Simplifies salt states, map files, and modules to only support Oracle Linux 9, removing all Debian/Ubuntu/CentOS/Rocky/AlmaLinux/RHEL conditional branches.
15 lines
247 B
Python
15 lines
247 B
Python
import subprocess
|
|
|
|
def check():
|
|
|
|
retval = 'False'
|
|
|
|
cmd = 'needs-restarting -r > /dev/null 2>&1'
|
|
|
|
try:
|
|
needs_restarting = subprocess.check_call(cmd, shell=True)
|
|
except subprocess.CalledProcessError:
|
|
retval = 'True'
|
|
|
|
return retval
|