Skip to content

Commit 43a5a5f

Browse files
committed
Small fix for writing DB passwords
1 parent 3604fee commit 43a5a5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layersbox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ def create_databases(dir, service_name, database_env_files):
738738
db_password = mysqlcreate_output.split(" -p")[1].split(" -hmysql")[0]
739739
# write password to env file
740740
with open(join(servicedir, service_name, env_file[0]), "a") as outfile:
741-
outfile.write("{}_DB_PASS={}".format(db_key, db_password))
741+
outfile.write("\n{}_DB_PASS={}".format(db_key, db_password))
742742

743743
# clean up and delete secret.env content, otherwise db is created again
744744
with open(join(dir, "tmp", "secret.env"), "w"):

0 commit comments

Comments
 (0)