Support mysql_install_db script on Gentoo

On Gentoo, mysql_install_db script is installed into /usr/share/mysql/scripts
and therefore is not found by mysql_datadir type.
This commit adds scripts path to ENV['PATH'] so it can be found.
This commit is contained in:
Arkadiusz Dzięgiel 2016-05-19 12:16:59 +02:00
parent d5d2de7719
commit 41e4753bd2

View file

@ -5,8 +5,8 @@ Puppet::Type.type(:mysql_datadir).provide(:mysql, :parent => Puppet::Provider::M
initvars
# Make sure we find mysqld on CentOS
ENV['PATH']=ENV['PATH'] + ':/usr/libexec'
# Make sure we find mysqld on CentOS and mysql_install_db on Gentoo
ENV['PATH']=ENV['PATH'] + ':/usr/libexec:/usr/share/mysql/scripts'
commands :mysqld => 'mysqld'
commands :mysql_install_db => 'mysql_install_db'