From 8acab668775a85931c33e68eb79b2cf822b7c631 Mon Sep 17 00:00:00 2001 From: Ade Lee Date: Fri, 1 Feb 2013 14:21:25 -0500 Subject: Change pkidestroy to get an install token and use admin interface to update security domain. --- base/deploy/src/pkidestroy | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'base/deploy/src/pkidestroy') diff --git a/base/deploy/src/pkidestroy b/base/deploy/src/pkidestroy index ba52d9642..839e1cad5 100755 --- a/base/deploy/src/pkidestroy +++ b/base/deploy/src/pkidestroy @@ -100,6 +100,18 @@ def main(argv): nargs=1, metavar='', help='FORMAT: ${pki_instance_name}') + parser.optional.add_argument('-u', + dest='pki_secdomain_user', + action='store', + nargs=1, metavar='', + help='security domain user') + + parser.optional.add_argument('-w', + dest='pki_secdomain_pass', + action='store', + nargs=1, metavar='', + help='security domain password') + args = parser.process_command_line_arguments(argv) interactive = False @@ -142,6 +154,14 @@ def main(argv): else: break + # '-u' + if args.pki_secdomain_user: + config.pki_secdomain_user = str(args.pki_secdomain_user).strip('[\']') + + # '-w' + if args.pki_secdomain_pass: + config.pki_secdomain_pass = str(args.pki_secdomain_pass).strip('[\']') + # verify that previously deployed instance exists deployed_pki_instance_path = config.pki_root_prefix +\ config.PKI_DEPLOYMENT_BASE_ROOT + "/" +\ -- cgit