Fix error in creating logrotation file.
This commit is contained in:
parent
4dbbfdba15
commit
ebef1c40fd
@ -2503,8 +2503,7 @@ if ! $UPDATE_MYSQL || $_sys_maint_cnf_needed ; then
|
||||
fi
|
||||
|
||||
|
||||
_maint_conf_file=${MYSQL_INSTALL_DIR}/sys-maint.cnf
|
||||
echononl "Erstelle ${_maint_conf_file}.."
|
||||
echononl "Erstelle ${MYSQL_INSTALL_DIR}/sys-maint.cnf.."
|
||||
cat << EOF > ${MYSQL_INSTALL_DIR}/sys-maint.cnf
|
||||
[client]
|
||||
host = localhost
|
||||
@ -2540,8 +2539,8 @@ $_mysql_slow_query_log
|
||||
compress
|
||||
sharedscripts
|
||||
postrotate
|
||||
MYSQL="`dirname $MYSQL_INSTALL_DIR`/mysql/bin/mysql --defaults-file=$_maint_conf_file"
|
||||
MYADMIN="`dirname $MYSQL_INSTALL_DIR`/mysql/bin/mysqladmin --defaults-file=$_maint_conf_file"
|
||||
MYSQL="`dirname $MYSQL_INSTALL_DIR`/mysql/bin/mysql --defaults-file=${MYSQL_INSTALL_DIR}/sys-maint.cnf"
|
||||
MYADMIN="`dirname $MYSQL_INSTALL_DIR`/mysql/bin/mysqladmin --defaults-file=${MYSQL_INSTALL_DIR}/sys-maint.cnf"
|
||||
if [ -z "\`\$MYADMIN ping 2>/dev/null\`" ]; then
|
||||
echo "Warning: no mysqld running or missing sys-maint user?"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user