Fix for older mariadb versions
This commit is contained in:
parent
1733552f7e
commit
c72ad8ef06
6
mysql.cf
6
mysql.cf
|
@ -110,7 +110,11 @@ vars:
|
||||||
"$(mysql.default_datadir)");
|
"$(mysql.default_datadir)");
|
||||||
|
|
||||||
type_mariadb::
|
type_mariadb::
|
||||||
"install_db_cmd" string => "if [ ! -d $(datadir)/mysql ]; then $(mysql.bin_dir)/mariadb-install-db --user=$(mysql.user)>/dev/null ; fi";
|
"install_db_exe" string => ifelse(fileexists("$(mysql.bin_dir)/mysql_install_db"),
|
||||||
|
"$(mysql.bin_dir)/mysql_install_db",
|
||||||
|
"$(mysql.bin_dir)/mariadb-install-db");
|
||||||
|
|
||||||
|
"install_db_cmd" string => "if [ ! -d $(datadir)/mysql ]; then $(install_db_exe) --user=$(mysql.user)>/dev/null ; fi";
|
||||||
type_mysql8::
|
type_mysql8::
|
||||||
"install_db_cmd" string => "if [ ! -d $(datadir)/mysql ]; then $(mysql.mysqld_cmd) --initialize-insecure --user=$(mysql.user); fi";
|
"install_db_cmd" string => "if [ ! -d $(datadir)/mysql ]; then $(mysql.mysqld_cmd) --initialize-insecure --user=$(mysql.user); fi";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue