fix: [install create default user] default passwd file: add missing new line

This commit is contained in:
Terrtia 2020-04-23 10:48:13 +02:00
parent ed0985f111
commit 7d59dd883e
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -37,7 +37,7 @@ if __name__ == "__main__":
default_passwd_file = os.path.join(os.environ['AIL_HOME'], 'DEFAULT_PASSWORD')
to_write_str = '# Password Generated by default\n# This file is deleted after the first login\n#\nemail=admin@admin.test\npassword='
to_write_str = to_write_str + password + '\nAPI_Key=' + token
to_write_str = to_write_str + password + '\nAPI_Key=' + token + '\n'
with open(default_passwd_file, 'w') as f:
f.write(to_write_str)