Patches for aports can be sent to this list

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

Marcel Haazen
Details
Message ID
<20190417134500.12800-1-marcel@haazen.xyz>
Sender timestamp
1555508700
DKIM signature
missing
Download raw message
Patch: +3 -2
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 <scadu@yandex.com>
 # Contributor: Carlo Landmeter <clandmeter@gmail.com>
 # Contributor: TBK <alpine@jjtc.eu>
+# Contributor: Marcel Haazen <marcel@haazen.xyz>
 # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 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:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---