2017-02-28 05:07:19 -06:00
|
|
|
# Copyright (C) 2017 IPA Project Contributors, see COPYING for license
|
|
|
|
import argparse
|
|
|
|
|
2021-06-11 01:52:23 -05:00
|
|
|
import ipaserver.custodia.server # pylint: disable=relative-import
|
2017-02-28 05:07:19 -06:00
|
|
|
|
|
|
|
|
|
|
|
argparser = argparse.ArgumentParser(
|
|
|
|
prog='ipa-custodia',
|
|
|
|
description='IPA Custodia service'
|
|
|
|
)
|
|
|
|
argparser.add_argument(
|
|
|
|
'--debug',
|
|
|
|
action='store_true',
|
|
|
|
help='Debug mode'
|
|
|
|
)
|
|
|
|
argparser.add_argument(
|
|
|
|
'configfile',
|
|
|
|
nargs='?',
|
|
|
|
type=argparse.FileType('r'),
|
|
|
|
help="Path to IPA's custodia server config",
|
|
|
|
default='/etc/ipa/custodia/custodia.conf'
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
2021-06-11 01:52:23 -05:00
|
|
|
return ipaserver.custodia.server.main(argparser)
|
2017-02-28 05:07:19 -06:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|