diff options
author | Filipp Lepalaan <filipp@mac.com> | 2021-05-12 12:57:54 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2021-05-12 12:57:54 +0300 |
commit | b15f46289ad180de4bc16a4ee8089e838eb54c25 (patch) | |
tree | 4163dc7499f6fd7980a7e387d66e3bdbd8181122 | |
parent | 9126b0cf6d870cdd19dee6205e212e1b04642c84 (diff) | |
download | Servo-b15f46289ad180de4bc16a4ee8089e838eb54c25.tar.gz Servo-b15f46289ad180de4bc16a4ee8089e838eb54c25.tar.bz2 Servo-b15f46289ad180de4bc16a4ee8089e838eb54c25.zip |
createdb after createuser
-rwxr-xr-x | install.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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() |