Lisk-sdk: Set "lisk" user for database if its empty during migration

Created on 28 Jun 2018  路  4Comments  路  Source: LiskHQ/lisk-sdk

Expected behavior

There must be a username for database set at the end of migration process. If not set it tries to load USER env variable. Which is not available when lisk scripts are started from the some non-interactive shell.

Actual behavior

Version 0.9.x had behavior to use lisk username if there is no username set in config.json. This behavior is changed in 1.0.x. Not sure the which cause this behavioral change, pg-promise may be looked into it.

Steps to fix

Update the update_config.js script to set user to lisk if there is no user after the final configuration is generated.

Which version(s) does this affect? (Environment, OS, etc...)

1.0.x

bug

All 4 comments

@fchavant @ManuGowda Created the issue based on discussion we had on configuration migration.

@fchavant Can we make sure that USER variable was not set in lisk-scripts for 0.9.x releases.

@nazarhussain I had discussion with @fchavant about the env variable USER was not set in lisk-scripts for 0.9.x releases.

Closed by #2227 / #2229 / #2240

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MaciejBaj picture MaciejBaj  路  4Comments

toschdev picture toschdev  路  3Comments

slaweet picture slaweet  路  3Comments

yatki picture yatki  路  3Comments

MaciejBaj picture MaciejBaj  路  3Comments