From b6875f45eac714c20feddbed26763892a03cc4f1 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Fri, 3 Jun 2022 22:26:21 +0900 Subject: [PATCH] =?UTF-8?q?DB=20=EC=B4=88=EA=B8=B0=ED=99=94=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20=EC=84=A4=EC=A0=95=20=EB=B3=80=EA=B2=BD=20-=20Maria?= =?UTF-8?q?DB=20=EC=B4=88=EA=B8=B0=ED=99=94=EC=8B=9C=20Root=20host=20?= =?UTF-8?q?=EC=A7=80=EC=A0=95=20-=20=EC=84=B8=EB=B6=80=20DB=20=EA=B3=84?= =?UTF-8?q?=EC=A0=95=EB=A7=88=EB=8B=A4=20=EC=83=9D=EC=84=B1=EB=90=9C=20?= =?UTF-8?q?=EB=B9=84=EB=B0=80=EB=B2=88=ED=98=B8=20=EC=95=88=EB=82=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hidche/account.orig.env | 2 ++ hidche/db/entrypoint.sh | 1 + 2 files changed, 3 insertions(+) diff --git a/hidche/account.orig.env b/hidche/account.orig.env index 997c9c4..e4fb01f 100644 --- a/hidche/account.orig.env +++ b/hidche/account.orig.env @@ -1,6 +1,8 @@ #MARIADB 비밀번호. (필수) MARIADB_ROOT_PASSWORD= +#MARIADB ROOT 접근 주소(선택, 외부 접근 시 % 입력) +MARIADB_ROOT_HOST= HIDCHE_PW_SALT= HIDCHE_DB_PREFIX=hidche diff --git a/hidche/db/entrypoint.sh b/hidche/db/entrypoint.sh index 73d85f4..877d5bf 100644 --- a/hidche/db/entrypoint.sh +++ b/hidche/db/entrypoint.sh @@ -329,6 +329,7 @@ docker_setup_db() { mysql_note "Creating database ${fullDBName}" subPW=`echo -n ${dbName}${HIDCHE_PW_SALT}${MARIADB_ROOT_PASSWORD}${dbName}${HIDCHE_PW_SALT} | shasum -a 512` subPW=${subPW:0:32} + mysql_note "GENERATED ${fullDBName} PASSWORD: $subPW" local userPasswordEscaped userPasswordEscaped=$( docker_sql_escape_string_literal "${subPW}" )