From b15f46289ad180de4bc16a4ee8089e838eb54c25 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 12 May 2021 12:57:54 +0300 Subject: createdb after createuser --- install.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install.py b/install.py index c61974e..38fdd27 100755 --- a/install.py +++ b/install.py @@ -27,6 +27,7 @@ args['dbuser'] = input('3/10 DB user [servo]: ') or 'servo' args['dbpwd'] = input('4/10 DB password []: ') or '' assert call(['createuser', args['dbuser'], '-U', args['dbadmin']]) == 0, 'Could not create DB user' +assert call(['createdb', args['dbname'], '-O', args['dbuser'], '-U', args['dbadmin']]), 'Could not create DB' args['secret_key'] = b64encode(os.urandom(32)).decode('utf-8') args['install_locale'] = input('51/10 Locale [sv_SE.UTF-8]: ') or 'sv_SE.UTF-8' @@ -43,8 +44,6 @@ template = Template(raw) s = template.substitute(**args) -call(['createdb', args['dbname'], '-O', args['dbuser'], '-U', args['dbadmin']]) - fh.write(s) fh.close() -- cgit v1.2.3