summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-11-08 08:26:57 -0200
committerdrebs <drebs@riseup.net>2017-11-09 18:35:51 -0200
commitf7bdd435a3910ca2f5ad88020f52d42484db7ef7 (patch)
tree8522109fa16a5e9bbd78435d1fdb6dbe97b25563
parent4228b277d5a3bcb96805fe9557fb8d8dad4fa3c2 (diff)
[pkg] make user db argument mandatory in user db creation script
-rwxr-xr-xpkg/server/soledad-create-userdb5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/server/soledad-create-userdb b/pkg/server/soledad-create-userdb
index 02130383..b24f050e 100755
--- a/pkg/server/soledad-create-userdb
+++ b/pkg/server/soledad-create-userdb
@@ -32,9 +32,8 @@ Creates a user database.
This is meant to be used by Soledad Server.
"""
parser = argparse.ArgumentParser(description=description)
-parser.add_argument('dbname', metavar='user-d34db33f', type=str,
- default='', nargs='?',
- help='database name on the format user-{uuid4}')
+parser.add_argument('dbname', type=str,
+ help='database name on the format user-{user_id}')
CONF = get_config()
DBCONF = get_config(section='database-security')
NETRC_PATH = CONF['admin_netrc']