diff --git a/src/core/mysql/index.ts b/src/core/mysql/index.ts index 4f07ae9..21c6300 100644 --- a/src/core/mysql/index.ts +++ b/src/core/mysql/index.ts @@ -225,7 +225,7 @@ export class MysqlPlugin implements DepkerPlugin { await this.exec([ `DROP USER IF EXISTS ${username}`, `DROP DATABASE IF EXISTS ${database}`, - `CREATE USER '${username}'@'%' IDENTIFIED BY '${username}'`, + `CREATE USER '${username}'@'%' IDENTIFIED BY '${password}'`, `CREATE DATABASE ${database}`, `GRANT ALL PRIVILEGES ON ${database}.* TO '${username}'@'%'`, `FLUSH PRIVILEGES`, diff --git a/src/core/postgres/index.ts b/src/core/postgres/index.ts index 1055558..8be0d76 100644 --- a/src/core/postgres/index.ts +++ b/src/core/postgres/index.ts @@ -221,7 +221,7 @@ export class PostgresPlugin implements DepkerPlugin { await this.exec([ `DROP USER IF EXISTS ${username}`, `DROP DATABASE IF EXISTS ${database}`, - `CREATE USER ${username} WITH PASSWORD '${username}'`, + `CREATE USER ${username} WITH ENCRYPTED PASSWORD '${password}'`, `CREATE DATABASE ${database}`, `GRANT ALL PRIVILEGES ON DATABASE ${database} TO ${username}`, ]); diff --git a/src/depker.ts b/src/depker.ts index 1f7c98f..650119f 100644 --- a/src/depker.ts +++ b/src/depker.ts @@ -43,7 +43,7 @@ export class Depker { private constructor() { // info this.name = "depker"; - this.version = "5.3.3"; + this.version = "5.3.4"; this.description = "Docker-based cloud deployment tool."; // service this.cli = new CliModule(this);