mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
31 lines
589 B
Python
31 lines
589 B
Python
|
# Copyright (C) 2017 IPA Project Contributors, see COPYING for license
|
||
|
import argparse
|
||
|
|
||
|
import custodia.server
|
||
|
|
||
|
|
||
|
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():
|
||
|
return custodia.server.main(argparser)
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
main()
|