mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 08:00:02 -06:00
fix managed-entries printing IPA not installed
ipa-managed-entries would print "IPA is not configured on this system." even though this is not true if run as a normal user. Add check for root running the script. https://pagure.io/freeipa/issue/6928 Reviewed-By: Pavel Vomacka <pvomacka@redhat.com>
This commit is contained in:
parent
afe85c3798
commit
6522c4a837
@ -20,6 +20,7 @@
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
from optparse import OptionParser # pylint: disable=deprecated-module
|
||||
@ -193,4 +194,6 @@ def main():
|
||||
return retval
|
||||
|
||||
if __name__ == '__main__':
|
||||
if not os.geteuid() == 0:
|
||||
sys.exit("\nMust be run as root\n")
|
||||
installutils.run_script(main, operation_name='ipa-managed-entries')
|
||||
|
Loading…
Reference in New Issue
Block a user