mariadb: Update post_install

related: https://github.com/ScoopInstaller/Scoop/pull/5065
This commit is contained in:
Issac Lin 2022-08-11 15:49:17 +08:00 committed by GitHub
parent bef9c55b2a
commit 38d3ede205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@
"post_install": [ "post_install": [
"if (!(Test-Path \"$dir\\data\\my.ini\") -and !(Test-Path \"$dir\\data\\my.cnf\") -and !(Test-Path \"$dir\\data\\mysql\")) {", "if (!(Test-Path \"$dir\\data\\my.ini\") -and !(Test-Path \"$dir\\data\\my.cnf\") -and !(Test-Path \"$dir\\data\\mysql\")) {",
" warn 'Initializing data directory ...'", " warn 'Initializing data directory ...'",
" Invoke-ExternalCommand -FilePath \"$dir\\bin\\mysql_install_db.exe\" -ArgumentList @(\"--datadir=`\"$dir\\data`\"\")", " Invoke-ExternalCommand \"$dir\\bin\\mysql_install_db.exe\" -ArgumentList \"--datadir=$dir\\data\" | Out-Null",
" warn 'Database has been initialized (username: root, password: <blank>)'", " warn 'Database has been initialized (username: root, password: <blank>)'",
"}" "}"
], ],