Skip to content

Commit

Permalink
Skip write user creation if ckan user is write user
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Oct 7, 2012
1 parent 6317fc1 commit 5614733
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckanext/datastore/commands.py
Expand Up @@ -100,7 +100,8 @@ def command(self):
print 'Creating write user: SUCCESS'
elif cmd == 'create-all':
self.create_db()
self.create_write_user()
if self.db_ckan_url_parts['db_user'] != self.db_write_url_parts['db_user']:
self.create_write_user()
self.create_read_only_user()
if self.verbose:
print 'Creating db and users for datastore: SUCCESS'
Expand Down

0 comments on commit 5614733

Please sign in to comment.