mirror of
https://github.com/adulau/abstract-key-server.git
synced 2024-12-22 00:36:03 +00:00
chg: [import] version is now configurable
This commit is contained in:
parent
5a9af6c376
commit
51c320eddb
2 changed files with 2 additions and 2 deletions
|
@ -4,14 +4,13 @@ import argparse
|
||||||
import os
|
import os
|
||||||
import configparser
|
import configparser
|
||||||
|
|
||||||
version = 'aks 0.1'
|
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description='aks - import OpenPGP key into the datastore')
|
parser = argparse.ArgumentParser(description='aks - import OpenPGP key into the datastore')
|
||||||
config = configparser.RawConfigParser()
|
config = configparser.RawConfigParser()
|
||||||
config.read('../conf/aks.conf')
|
config.read('../conf/aks.conf')
|
||||||
uid_max_size = int(config.get('global', 'uid-max-size'))
|
uid_max_size = int(config.get('global', 'uid-max-size'))
|
||||||
ardb_port = int(config.get('global', 'ardb-port'))
|
ardb_port = int(config.get('global', 'ardb-port'))
|
||||||
namespace = config.get('global', 'namespace')
|
namespace = config.get('global', 'namespace')
|
||||||
|
version = config.get('global', 'version')
|
||||||
parser.add_argument('-f', '--file', help='OpenPGP key file')
|
parser.add_argument('-f', '--file', help='OpenPGP key file')
|
||||||
parser.add_argument('--expired', help='Import expired key')
|
parser.add_argument('--expired', help='Import expired key')
|
||||||
parser.add_argument('--namespace', help='Namespace where to import the OpenPGP key', default=namespace)
|
parser.add_argument('--namespace', help='Namespace where to import the OpenPGP key', default=namespace)
|
||||||
|
|
|
@ -2,3 +2,4 @@
|
||||||
uid-max-size = 400
|
uid-max-size = 400
|
||||||
ardb-port = 14242
|
ardb-port = 14242
|
||||||
namespace = default
|
namespace = default
|
||||||
|
version = aks 0.1
|
||||||
|
|
Loading…
Reference in a new issue