Skip to content

Commit ee51d4c

Browse files
author
Helen
committed
Merge pull request #821 from DavidS/fix-debian-failures
(FM-5050) Configure the base of includedir
2 parents 696aff6 + 232ef18 commit ee51d4c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

manifests/server/config.pp

+10
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@
1717
recurse => $mysql::server::purge_conf_dir,
1818
purge => $mysql::server::purge_conf_dir,
1919
}
20+
21+
# on some systems this is /etc/my.cnf.d, while Debian has /etc/mysql/conf.d and FreeBSD something in /usr/local. For the latter systems,
22+
# managing this basedir is also required, to have it available before the package is installed.
23+
$includeparentdir = mysql_dirname($includedir)
24+
if $includeparentdir != '/' and $includeparentdir != '/etc' {
25+
file { $includeparentdir:
26+
ensure => directory,
27+
mode => '0755',
28+
}
29+
}
2030
}
2131

2232
$logbin = pick($options['mysqld']['log-bin'], $options['mysqld']['log_bin'], false)

0 commit comments

Comments
 (0)