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}" )