Fiexes for FreeBSD

This commit is contained in:
Tube 2023-10-22 13:39:35 +02:00
parent 867c27ba84
commit fe25546de2
1 changed files with 10 additions and 3 deletions

View File

@ -15,7 +15,8 @@ vars:
freebsd:: freebsd::
# "pkg" string => "mariadb106-server"; # "pkg" string => "mariadb106-server";
"pkg" string => "mysql80-server"; "pkg" slist => {"mysql80-server"};
"client_pkgs" slist => {"mysql80-client"};
"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";
@ -32,9 +33,16 @@ vars:
"mysqldump_cmd" string => "$(bin_dir)/mysqldump"; "mysqldump_cmd" string => "$(bin_dir)/mysqldump";
files: files:
freebsd::
"/etc/rc.conf.d/mysql"
create => "true",
content => "mysql_enable=YES";
any::
"$(cfg_dir)/." "$(cfg_dir)/."
create => "true", create => "true",
perms => mog("0755","root","root"), perms => m("0755"),
handle => "mysql_cfg_dir_created"; handle => "mysql_cfg_dir_created";
@ -64,7 +72,6 @@ services:
depends_on => {"mysql_running","mysql_cfg_created"}; depends_on => {"mysql_running","mysql_cfg_created"};
reports: reports:
} }