Skip to content

Commit fdffda8

Browse files
committed
Changed DB_PASS env variable
1 parent 4d88fcc commit fdffda8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

layersbox

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,11 +458,10 @@ def box_install(args):
458458

459459
# generate database and parse output
460460
mysqlcreate_output = subprocess.check_output(["docker-compose", "run", "mysqlcreate"])
461-
print(mysqlcreate_output)
462461
db_password = mysqlcreate_output.split(" -p")[1].split(" -hmysql")[0]
463462
# write password to env file
464463
with open(join(servicedir, service_name, env_file), "a") as outfile:
465-
outfile.write("{}_DB_PASSWORD={}".format(db_key, db_password))
464+
outfile.write("{}_DB_PASS={}".format(db_key, db_password))
466465

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

0 commit comments

Comments
 (0)