Fix removed root check in so-rule

This commit is contained in:
William Wernert
2021-08-03 15:25:53 -04:00
parent 25bf25eae6
commit 9e5d3aa286

View File

@@ -349,7 +349,9 @@ def sigint_handler(*_):
def main(): def main():
signal.signal(signal.SIGINT, sigint_handler) signal.signal(signal.SIGINT, sigint_handler)
if os.geteuid() != 0:
print('You must run this script as root', file=sys.stderr)
sys.exit(1)
apply_help='After updating rule configuration, apply the idstools state.' apply_help='After updating rule configuration, apply the idstools state.'