mirror of
https://github.com/casjaysdevdocker/mysql
synced 2024-11-21 11:23:08 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/usr/local/bin/entrypoint.sh rootfs/usr/local/etc/docker/init.d/00-mysqld.sh rootfs/usr/local/etc/docker/init.d/05-nginx.sh
This commit is contained in:
parent
e2cf8eb9a9
commit
bd5c8b2840
@ -82,10 +82,10 @@ SERVICE_UID="0" # set the user id
|
|||||||
SERVICE_GID="0" # set the group id
|
SERVICE_GID="0" # set the group id
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Primary server port- will be added to server ports
|
# Primary server port- will be added to server ports
|
||||||
WEB_SERVER_PORT="" # port : 80,443
|
WEB_SERVER_PORT="80" # port : 80,443
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Secondary ports
|
# Secondary ports
|
||||||
SERVER_PORTS="" # specifiy other ports
|
SERVER_PORTS="3306" # specifiy other ports
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Server directories
|
# Server directories
|
||||||
WWW_ROOT_DIR="" # set default web dir
|
WWW_ROOT_DIR="" # set default web dir
|
||||||
|
@ -186,7 +186,7 @@ __run_pre_execute_checks() {
|
|||||||
# Put command to execute in parentheses
|
# Put command to execute in parentheses
|
||||||
{
|
{
|
||||||
if [ ! -d "$DATABASE_DIR" ] || [ ! -f "$DATABASE_DIR/ibdata1" ]; then
|
if [ ! -d "$DATABASE_DIR" ] || [ ! -f "$DATABASE_DIR/ibdata1" ]; then
|
||||||
rm -Rf "$DATABASE_DIR"
|
rm -Rf "${DATABASE_DIR:?}"/*
|
||||||
mkdir -p "$DATABASE_DIR"
|
mkdir -p "$DATABASE_DIR"
|
||||||
chown -Rf $SERVICE_USER:$SERVICE_GROUP "$DATABASE_DIR"
|
chown -Rf $SERVICE_USER:$SERVICE_GROUP "$DATABASE_DIR"
|
||||||
mysql_install_db --datadir=$DATABASE_DIR --user=$SERVICE_USER 2>/dev/null
|
mysql_install_db --datadir=$DATABASE_DIR --user=$SERVICE_USER 2>/dev/null
|
||||||
|
@ -108,11 +108,11 @@ RUNAS_USER="root" # normally root
|
|||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# execute command variables - keep single quotes variables will be expanded later
|
# execute command variables - keep single quotes variables will be expanded later
|
||||||
EXEC_CMD_BIN='nginx' # command to execute
|
EXEC_CMD_BIN='nginx' # command to execute
|
||||||
EXEC_CMD_ARGS='-c $CONF_DIR/nginx.conf' # command arguments
|
EXEC_CMD_ARGS='-c $ETC_DIR/nginx.conf' # command arguments
|
||||||
EXEC_PRE_SCRIPT='' # execute script before
|
EXEC_PRE_SCRIPT='' # execute script before
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Is this service a web server
|
# Is this service a web server
|
||||||
IS_WEB_SERVER="no"
|
IS_WEB_SERVER="yes"
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Is this service a database server
|
# Is this service a database server
|
||||||
IS_DATABASE_SERVICE="no"
|
IS_DATABASE_SERVICE="no"
|
||||||
|
Loading…
Reference in New Issue
Block a user