Merge pull request #3404 from vpeter4/mariadb9

mariadb: bump, allow localhost connections
This commit is contained in:
CvH 2019-04-06 09:20:12 +02:00 committed by GitHub
commit f48a60b6d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,8 @@
103
- update MariaDB to 10.3.14
include mysqldump program
add user kodi@localhost to allow localhost connections
102
- do not change password on addon update

View File

@ -2,9 +2,9 @@
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="mariadb"
PKG_VERSION="10.3.12"
PKG_REV="102"
PKG_SHA256="f7449a34c25e0455928d7983dae83fd2069fe1f16c4c5f4aeed9ed9d3f081ff6"
PKG_VERSION="10.3.14"
PKG_REV="103"
PKG_SHA256="ba1c94d92fc8ebdf9b8a1d1b93ed6aeeead33da507efbbd4afcf49f32023e054"
PKG_LICENSE="GPL2"
PKG_SITE="https://mariadb.org"
PKG_URL="https://downloads.mariadb.org/interstitial/${PKG_NAME}-${PKG_VERSION}/source/${PKG_NAME}-${PKG_VERSION}.tar.gz"
@ -87,6 +87,7 @@ addon() {
cp ${MARIADB}/bin/mysql \
${MARIADB}/bin/mysqld \
${MARIADB}/bin/mysqladmin \
${MARIADB}/bin/mysqldump \
${MARIADB}/bin/mysql_secure_installation \
${MARIADB}/bin/my_print_defaults \
${MARIADB}/bin/resolveip \

View File

@ -43,8 +43,11 @@ if [[ ! -f $ADDON_HOME/set_mysql_passwords.sql ]] || [[ $ADDON_HOME/settings.xml
cat << SQL_DATA > $ADDON_HOME/set_mysql_passwords.sql
SET PASSWORD FOR 'root'@'localhost'=PASSWORD('$MYSQL_ROOT_PASS');
CREATE USER IF NOT EXISTS 'kodi';
CREATE USER IF NOT EXISTS 'kodi'@'localhost';
SET PASSWORD FOR 'kodi'=PASSWORD('$MYSQL_KODI_PASS');
SET PASSWORD FOR 'kodi'@'localhost'=PASSWORD('$MYSQL_KODI_PASS');
GRANT ALL ON *.* TO 'kodi';
GRANT ALL ON *.* TO 'kodi'@'localhost';
flush privileges;
SQL_DATA