mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-24 06:22:08 +03:00
commit
8de483a45b
@ -65,7 +65,7 @@ def setup_database_skeleton(dsn, rouser=None):
|
|||||||
cnt = cur.scalar('SELECT count(*) FROM pg_user where usename = %s',
|
cnt = cur.scalar('SELECT count(*) FROM pg_user where usename = %s',
|
||||||
(rouser, ))
|
(rouser, ))
|
||||||
if cnt == 0:
|
if cnt == 0:
|
||||||
LOG.fatal("Web user '%s' does not exists. Create it with:\n"
|
LOG.fatal("Web user '%s' does not exist. Create it with:\n"
|
||||||
"\n createuser %s", rouser, rouser)
|
"\n createuser %s", rouser, rouser)
|
||||||
raise UsageError('Missing read-only user.')
|
raise UsageError('Missing read-only user.')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user