Fixes mysql version on FreeBSD
This commit is contained in:
parent
c57bf87e34
commit
024f2767cd
10
mysql.cf
10
mysql.cf
|
@ -20,11 +20,12 @@ vars:
|
||||||
"user" string => "mysql";
|
"user" string => "mysql";
|
||||||
"server_pkgs" slist => {"mysql80-server"};
|
"server_pkgs" slist => {"mysql80-server"};
|
||||||
"client_pkgs" slist => {"mysql80-client"};
|
"client_pkgs" slist => {"mysql80-client"};
|
||||||
|
"type" string => "mysql8";
|
||||||
|
|
||||||
"server_pkgs" slist => {"mariadb106-server"}, if => strcmp("$(cfg[mariadb])","true");
|
"server_pkgs" slist => {"mariadb106-server"}, if => strcmp("$(cfg[mariadb])","true");
|
||||||
"client_pkgs" slist => {"mariadb106-client"}, if => strcmp("$(cfg[mariadb])","true");
|
"client_pkgs" slist => {"mariadb106-client"}, if => strcmp("$(cfg[mariadb])","true");
|
||||||
|
"type" string => "mariadb",if => strcmp("$(cfg[mariadb])","true");
|
||||||
|
|
||||||
"type" string => "mysql8";
|
|
||||||
"service_name" string => "mysql-server";
|
"service_name" string => "mysql-server";
|
||||||
"cfg_dir" string => "/usr/local/etc/mysql";
|
"cfg_dir" string => "/usr/local/etc/mysql";
|
||||||
"cfg_file" string => "/usr/local/etc/mysql/my.cnf";
|
"cfg_file" string => "/usr/local/etc/mysql/my.cnf";
|
||||||
|
@ -434,9 +435,12 @@ classes:
|
||||||
vars:
|
vars:
|
||||||
"table_exists" string => "mysql_$(cfg[db_name])_$(cfg[db_check_table])_exists";
|
"table_exists" string => "mysql_$(cfg[db_name])_$(cfg[db_check_table])_exists";
|
||||||
methods:
|
methods:
|
||||||
"any" usebundle => mysql_table_exists(@(cfg),"$(cfg[db_check_table])");
|
"any" usebundle => mysql_table_exists(@(cfg),"$(cfg[db_check_table])"),
|
||||||
|
handle=>"$(table_exists)_checked";
|
||||||
|
|
||||||
"!$(table_exists)&backup_exists"::
|
"!$(table_exists)&backup_exists"::
|
||||||
"any" usebundle => restore_mysql_db(@(cfg),"$(file)");
|
"any" usebundle => restore_mysql_db(@(cfg),"$(file)"),
|
||||||
|
depends_on=>{"$(table_exists)_checked"};
|
||||||
reports:
|
reports:
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue