Fixed MySQL socket usage in web-interface image

This commit is contained in:
Alexey Pustovalov 2023-07-14 14:15:26 +09:00
parent 0384443774
commit 143993fe83
9 changed files with 45 additions and 9 deletions

View File

@ -57,7 +57,11 @@ file_env() {
# Check prerequisites for MySQL database # Check prerequisites for MySQL database
check_variables() { check_variables() {
if [ ! -n "${DB_SERVER_SOCKET}" ]; then
: ${DB_SERVER_HOST:="mysql-server"} : ${DB_SERVER_HOST:="mysql-server"}
else
DB_SERVER_HOST="localhost"
fi
: ${DB_SERVER_PORT:="3306"} : ${DB_SERVER_PORT:="3306"}
file_env MYSQL_USER file_env MYSQL_USER

View File

@ -57,7 +57,11 @@ file_env() {
# Check prerequisites for MySQL database # Check prerequisites for MySQL database
check_variables() { check_variables() {
if [ ! -n "${DB_SERVER_SOCKET}" ]; then
: ${DB_SERVER_HOST:="mysql-server"} : ${DB_SERVER_HOST:="mysql-server"}
else
DB_SERVER_HOST="localhost"
fi
: ${DB_SERVER_PORT:="3306"} : ${DB_SERVER_PORT:="3306"}
file_env MYSQL_USER file_env MYSQL_USER

View File

@ -57,7 +57,11 @@ file_env() {
# Check prerequisites for MySQL database # Check prerequisites for MySQL database
check_variables() { check_variables() {
if [ ! -n "${DB_SERVER_SOCKET}" ]; then
: ${DB_SERVER_HOST:="mysql-server"} : ${DB_SERVER_HOST:="mysql-server"}
else
DB_SERVER_HOST="localhost"
fi
: ${DB_SERVER_PORT:="3306"} : ${DB_SERVER_PORT:="3306"}
file_env MYSQL_USER file_env MYSQL_USER

View File

@ -57,7 +57,11 @@ file_env() {
# Check prerequisites for MySQL database # Check prerequisites for MySQL database
check_variables() { check_variables() {
if [ ! -n "${DB_SERVER_SOCKET}" ]; then
: ${DB_SERVER_HOST:="mysql-server"} : ${DB_SERVER_HOST:="mysql-server"}
else
DB_SERVER_HOST="localhost"
fi
: ${DB_SERVER_PORT:="3306"} : ${DB_SERVER_PORT:="3306"}
file_env MYSQL_USER file_env MYSQL_USER

View File

@ -57,7 +57,11 @@ file_env() {
# Check prerequisites for MySQL database # Check prerequisites for MySQL database
check_variables() { check_variables() {
if [ ! -n "${DB_SERVER_SOCKET}" ]; then
: ${DB_SERVER_HOST:="mysql-server"} : ${DB_SERVER_HOST:="mysql-server"}
else
DB_SERVER_HOST="localhost"
fi
: ${DB_SERVER_PORT:="3306"} : ${DB_SERVER_PORT:="3306"}
file_env MYSQL_USER file_env MYSQL_USER

View File

@ -57,7 +57,11 @@ file_env() {
# Check prerequisites for MySQL database # Check prerequisites for MySQL database
check_variables() { check_variables() {
if [ ! -n "${DB_SERVER_SOCKET}" ]; then
: ${DB_SERVER_HOST:="mysql-server"} : ${DB_SERVER_HOST:="mysql-server"}
else
DB_SERVER_HOST="localhost"
fi
: ${DB_SERVER_PORT:="3306"} : ${DB_SERVER_PORT:="3306"}
file_env MYSQL_USER file_env MYSQL_USER

View File

@ -57,7 +57,11 @@ file_env() {
# Check prerequisites for MySQL database # Check prerequisites for MySQL database
check_variables() { check_variables() {
if [ ! -n "${DB_SERVER_SOCKET}" ]; then
: ${DB_SERVER_HOST:="mysql-server"} : ${DB_SERVER_HOST:="mysql-server"}
else
DB_SERVER_HOST="localhost"
fi
: ${DB_SERVER_PORT:="3306"} : ${DB_SERVER_PORT:="3306"}
file_env MYSQL_USER file_env MYSQL_USER

View File

@ -57,7 +57,11 @@ file_env() {
# Check prerequisites for MySQL database # Check prerequisites for MySQL database
check_variables() { check_variables() {
if [ ! -n "${DB_SERVER_SOCKET}" ]; then
: ${DB_SERVER_HOST:="mysql-server"} : ${DB_SERVER_HOST:="mysql-server"}
else
DB_SERVER_HOST="localhost"
fi
: ${DB_SERVER_PORT:="3306"} : ${DB_SERVER_PORT:="3306"}
file_env MYSQL_USER file_env MYSQL_USER

View File

@ -57,7 +57,11 @@ file_env() {
# Check prerequisites for MySQL database # Check prerequisites for MySQL database
check_variables() { check_variables() {
if [ ! -n "${DB_SERVER_SOCKET}" ]; then
: ${DB_SERVER_HOST:="mysql-server"} : ${DB_SERVER_HOST:="mysql-server"}
else
DB_SERVER_HOST="localhost"
fi
: ${DB_SERVER_PORT:="3306"} : ${DB_SERVER_PORT:="3306"}
file_env MYSQL_USER file_env MYSQL_USER