summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-11-08 08:25:17 -0200
committerdrebs <drebs@riseup.net>2017-11-09 18:35:51 -0200
commit4228b277d5a3bcb96805fe9557fb8d8dad4fa3c2 (patch)
tree9f8e844d067b006ba3db37c249eacf22ad11fb41 /pkg
parent102aea2f90786fbdb46d0d2e944d260fe40d8e5f (diff)
[pkg] remove unused --migrate-all option from user db creation script
Diffstat (limited to 'pkg')
-rwxr-xr-xpkg/server/soledad-create-userdb10
1 files changed, 1 insertions, 9 deletions
diff --git a/pkg/server/soledad-create-userdb b/pkg/server/soledad-create-userdb
index 24dfbb10..02130383 100755
--- a/pkg/server/soledad-create-userdb
+++ b/pkg/server/soledad-create-userdb
@@ -21,7 +21,6 @@ import netrc
import argparse
from leap.soledad.common.couch import CouchDatabase
from leap.soledad.common.couch.state import is_db_name_valid
-from leap.soledad.common.couch import list_users_dbs
from leap.soledad.server._config import get_config
@@ -36,8 +35,6 @@ 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('--migrate-all', action='store_true',
- help="recreate all design docs for all existing account")
CONF = get_config()
DBCONF = get_config(section='database-security')
NETRC_PATH = CONF['admin_netrc']
@@ -89,9 +86,4 @@ def ensure_database(dbname):
if __name__ == '__main__':
args = parser.parse_args()
- if args.migrate_all:
- couch_url = url_for_db('')
- for dbname in list_users_dbs(couch_url):
- ensure_database(dbname)
- else:
- ensure_database(args.dbname)
+ ensure_database(args.dbname)