Merge pull request #834 from jonnytpuppet/alwiesner/master
Check that /var/lib/mysql actually contains files.
This commit is contained in:
commit
2cf6000c55
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ Puppet::Type.type(:mysql_datadir).provide(:mysql, :parent => Puppet::Provider::M
|
||||||
|
|
||||||
def exists?
|
def exists?
|
||||||
datadir = @resource[:datadir]
|
datadir = @resource[:datadir]
|
||||||
File.directory?("#{datadir}/mysql")
|
(File.directory?("#{datadir}/mysql")) && (Dir.entries("#{datadir}/mysql") - %w{ . .. }).any?
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
Loading…
Reference in a new issue