mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-24 22:27:41 -05:00
Check if IPA client is configured in ipa-certupdate
https://fedorahosted.org/freeipa/ticket/4460 Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
1 parent
f40a0ad325
commit
9ab402c495
1 file changed
+6
@@ -41,6 +41,12 @@ class CertUpdate(admintool.AdminTool):
|
||||
super(CertUpdate, self).validate_options(needs_root=True)
|
||||
|
||||
def run(self):
|
||||
fstore = sysrestore.FileStore(paths.IPA_CLIENT_SYSRESTORE)
|
||||
if (not fstore.has_files() and
|
||||
not os.path.exists(paths.IPA_DEFAULT_CONF)):
|
||||
raise admintool.ScriptError(
|
||||
"IPA client is not configured on this system.")
|
||||
|
||||
api.bootstrap(context='cli_installer')
|
||||
api.finalize()
|
||||
|
||||
|
||||
Reference in new issue
Block a user