Subject: [alpine-aports] [PATCH] main/mariadb: Replace rpm parameter with datadir parameter

From: Marcel Haazen <[email-masked]>
Date: Wed, 17 Apr 2019 15:45:00 +0200

Fix for the init script so that the system database gets made after
running /etc/init.d/mariadb setup instead of failing silently.
---
 main/mariadb/APKBUILD      | 3 ++-
 main/mariadb/mariadb.initd | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/main/mariadb/APKBUILD b/main/mariadb/APKBUILD
index caa6171..83a5874 100644
--- a/main/mariadb/APKBUILD
+++ b/main/mariadb/APKBUILD
@@ -3,10 +3,11 @@
 # Contributor: Łukasz Jendrysik <[email-masked]>
 # Contributor: Carlo Landmeter <[email-masked]>
 # Contributor: TBK <[email-masked]>
+# Contributor: Marcel Haazen <[email-masked]>
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=mariadb
 pkgver=10.3.13
-pkgrel=0
+pkgrel=1
 pkgdesc="A fast SQL database server"
 url="https://www.mariadb.org"
 pkgusers="mysql"
diff --git a/main/mariadb/mariadb.initd b/main/mariadb/mariadb.initd
index 143ca8f..2958aea 100644
--- a/main/mariadb/mariadb.initd
+++ b/main/mariadb/mariadb.initd
@@ -16,7 +16,7 @@ depend() {
 
 setup() {
 	ebegin "Creating a new MySQL database"
-	mysql_install_db --user=mysql --rpm
+	mysql_install_db --user=mysql --datadir /var/lib/mysql
 	eend $?
 }
 
-- 
2.20.1.windows.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---