Mercurial > gemma
changeset 476:6d451c97cd7c
The GeoServer still needs the sys_admin as a default database user if no explicit user is given.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 23 Aug 2018 15:53:18 +0200 |
parents | 699080c4baa5 |
children | 00b52d653039 |
files | cmd/gemma/geoserver.go |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/cmd/gemma/geoserver.go Thu Aug 23 15:36:32 2018 +0200 +++ b/cmd/gemma/geoserver.go Thu Aug 23 15:53:18 2018 +0200 @@ -21,7 +21,7 @@ ) const ( - startupSQL = `SELECT public.setrole('${user}')` + startupSQL = `SELECT public.setrole('${user,'||encode('sys_admin', 'hex')||'}')` closeupSQL = `RESET ROLE` )