diff --git a/install_mysql-5.7.sh b/install_mysql-5.7.sh index c6a3a0a..0198a16 100755 --- a/install_mysql-5.7.sh +++ b/install_mysql-5.7.sh @@ -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