mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 13:14:21 +01:00
Don't delete the mariadb.sys yser (#1450)
* Don't delete the mariadb.sys yser Since 10.4.13 `mysql.user` (and probably others) have a new definer `mariadb.sys` instead of `mysql.sys` that should be added to the list of users which are retained. The Docker library has fixed their bootstrap code in https://github.com/docker-library/mariadb/pull/306 - this change applies the same fix here. * Bump version * Update CHANGELOG.md
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
# Changelog
|
||||
## 2.2.1
|
||||
- Don't delete the mariadb.sys user, it's needed in MariaDB >= 10.4.13
|
||||
|
||||
## 2.2.0
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "MariaDB",
|
||||
"version": "2.2.0",
|
||||
"version": "2.2.1",
|
||||
"slug": "mariadb",
|
||||
"description": "An SQL database server",
|
||||
"url": "https://github.com/home-assistant/hassio-addons/tree/master/mariadb",
|
||||
|
||||
@@ -45,12 +45,12 @@ if bashio::var.true "${NEW_INSTALL}"; then
|
||||
DELETE FROM
|
||||
mysql.user
|
||||
WHERE
|
||||
user NOT IN ('mysql.sys', 'mysqlxsys', 'root', 'mysql', 'proxies_priv')
|
||||
user NOT IN ('mysql.sys', 'mariadb.sys', 'mysqlxsys', 'root', 'mysql', 'proxies_priv')
|
||||
OR host NOT IN ('localhost');
|
||||
DELETE FROM
|
||||
mysql.proxies_priv
|
||||
WHERE
|
||||
user NOT IN ('mysql.sys', 'mysqlxsys', 'root', 'mysql', 'proxies_priv')
|
||||
user NOT IN ('mysql.sys', 'mariadb.sys', 'mysqlxsys', 'root', 'mysql', 'proxies_priv')
|
||||
OR host NOT IN ('localhost');
|
||||
DROP DATABASE IF EXISTS test;
|
||||
FLUSH PRIVILEGES;
|
||||
|
||||
Reference in New Issue
Block a user