From eda1e011e4e843cd13a309e950667c740b84090d Mon Sep 17 00:00:00 2001 From: gnsngck Date: Fri, 15 Dec 2017 02:41:55 +0900 Subject: [PATCH] Add post installation script for MariaDB (#1906) --- mariadb.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mariadb.json b/mariadb.json index bb86022890..c5369492e4 100644 --- a/mariadb.json +++ b/mariadb.json @@ -47,6 +47,14 @@ "persist": [ "data" ], + "post_install": "#Initialize data directory (without generating root password) + if (!(Test-Path \"$dir\\data\\auto.cnf\")) { + mysqld --initialize-insecure + }", + "notes": "Run following command as administrator to run MariaDB as a service. + +mysqld --install \"[Service Name(default:MySQL)]\" +", "checkver": { "url": "https://downloads.mariadb.org/", "re": "Download ([\\d.]+) Stable"