Compare commits
4 Commits
068c241353
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 704b4709d4 | |||
| 5ec756adec | |||
| 363e1176ff | |||
| 1488743e63 |
@@ -110,10 +110,11 @@ DNS_MASTER_SERVER=""
|
|||||||
# - $ mysql --login-path=local ...
|
# - $ mysql --login-path=local ...
|
||||||
# -
|
# -
|
||||||
# - Example
|
# - Example
|
||||||
# - mysql_credential_args="--login-path=local"
|
# - MYSQL_CREDENTIAL_ARGS="--login-path=local"
|
||||||
# - mysql_credential_args="--defaults-file=/etc/mysql/debian.cnf" (Debian default)
|
# - MYSQL_CREDENTIAL_ARGS="--defaults-file=/etc/mysql/debian.cnf" (Debian default)
|
||||||
# - mysql_credential_args="--defaults-file=/usr/local/mysql/sys-maint.cnf"
|
# - MYSQL_CREDENTIAL_ARGS="--defaults-file=/usr/local/mysql/sys-maint.cnf"
|
||||||
|
# - MYSQL_CREDENTIAL_ARGS="-u root -S /run/mysqld/mysqld.sock"
|
||||||
# -
|
# -
|
||||||
# - Defaults to '--login-path=local'
|
# - Defaults to '-u root -S /run/mysqld/mysqld.sock'
|
||||||
# -
|
# -
|
||||||
#MYSQL_CREDENTIAL_ARGS="--login-path=local"
|
#MYSQL_CREDENTIAL_ARGS="-u root -S /run/mysqld/mysqld.sock"
|
||||||
|
|||||||
@@ -207,14 +207,25 @@ shopt -u extglob
|
|||||||
|
|
||||||
# - Determin httpd binary
|
# - Determin httpd binary
|
||||||
# -
|
# -
|
||||||
_httpd_binary="`which httpd`"
|
## - Determin httpd binary
|
||||||
|
## -
|
||||||
|
_httpd_binary="$(ps -axu | grep httpd \
|
||||||
|
| grep -e "^root" \
|
||||||
|
| grep -v grep \
|
||||||
|
| grep -v vim \
|
||||||
|
| grep -v bash \
|
||||||
|
| awk '{print$11}' | head -1)"
|
||||||
|
|
||||||
if [ -z "$_httpd_binary" ]; then
|
if [ -z "$_httpd_binary" ]; then
|
||||||
_httpd_binary="$(ps -axu | grep httpd | grep -e "^root" | grep -v grep | awk '{print$11}')"
|
|
||||||
|
_httpd_binary="$(which httpd)"
|
||||||
|
|
||||||
if [ -z "$_httpd_binary" ]; then
|
if [ -z "$_httpd_binary" ]; then
|
||||||
if [ -x "/usr/local/apache2/bin/httpd" ]; then
|
if [ -x "/usr/local/apache2/bin/httpd" ]; then
|
||||||
_httpd_binary="/usr/local/apache2/bin/httpd"
|
_httpd_binary="/usr/local/apache2/bin/httpd"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# - Determin websever user/group
|
# - Determin websever user/group
|
||||||
@@ -841,7 +852,9 @@ if [ -z "$_existing_vhost_config_file" ]; then
|
|||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
if [[ -n "$(trim $COMMON_LOGFILE_DIR)" ]]; then
|
if $_suEXEC ; then
|
||||||
|
__log_dir=${_web_base_dir}/logs
|
||||||
|
elif [[ -n "$(trim $COMMON_LOGFILE_DIR)" ]]; then
|
||||||
__log_dir="$COMMON_LOGFILE_DIR"
|
__log_dir="$COMMON_LOGFILE_DIR"
|
||||||
else
|
else
|
||||||
__log_dir=${_web_base_dir}/logs
|
__log_dir=${_web_base_dir}/logs
|
||||||
@@ -2098,10 +2111,10 @@ fi
|
|||||||
_default_ipv6=false
|
_default_ipv6=false
|
||||||
|
|
||||||
|
|
||||||
if [[ -n "${IPv4_FIRST}" ]]; then
|
if [[ -n "${IPv4_FIRST}" ]] || [[ -n "${_ipv4}" ]]; then
|
||||||
_default_ipv4=true
|
_default_ipv4=true
|
||||||
fi
|
fi
|
||||||
if [[ -n "${IPv6_FIRST}" ]]; then
|
if [[ -n "${IPv6_FIRST}" ]] || [[ -n "${_ipv6}" ]]; then
|
||||||
_default_ipv6=true
|
_default_ipv6=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ if $delete_mode ; then
|
|||||||
[[ -n "$SCRIPT_remove_master_domain" ]] || SCRIPT_remove_master_domain="/root/bin/bind/bind_remove_domain_on_master.sh"
|
[[ -n "$SCRIPT_remove_master_domain" ]] || SCRIPT_remove_master_domain="/root/bin/bind/bind_remove_domain_on_master.sh"
|
||||||
[[ -n "$SCRIPT_remove_slave_domain" ]] || SCRIPT_remove_slave_domain="/root/bin/bind/bind_remove_domain_on_slave.sh"
|
[[ -n "$SCRIPT_remove_slave_domain" ]] || SCRIPT_remove_slave_domain="/root/bin/bind/bind_remove_domain_on_slave.sh"
|
||||||
|
|
||||||
[[ -n "$MYSQL_CREDENTIAL_ARGS" ]] || MYSQL_CREDENTIAL_ARGS="--login-path=local"
|
[[ -n "$MYSQL_CREDENTIAL_ARGS" ]] || MYSQL_CREDENTIAL_ARGS="-u root -S /run/mysqld/mysqld.sock"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user