Make this work in SLES as well As RedHat.
This commit is contained in:
parent
ac991e8e41
commit
6a93d67bb8
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ describe 'mysql::server::root_password class' do
|
|||
|
||||
it 'deletes all databases' do
|
||||
case fact('osfamily')
|
||||
when 'RedHat'
|
||||
when 'RedHat', 'SuSE'
|
||||
shell('rm -rf `grep datadir /etc/my.cnf | cut -d" " -f 3`/*')
|
||||
when 'Debian'
|
||||
shell('rm -rf `grep datadir /etc/mysql/my.cnf | cut -d" " -f 3`/*')
|
||||
|
|
Loading…
Reference in a new issue