Add post installation script for MariaDB (#1906)

This commit is contained in:
gnsngck 2017-12-15 02:41:55 +09:00 committed by Richard Kuhnt
parent a915cb2509
commit eda1e011e4

View File

@ -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"