Skip to content

Commit

Permalink
Merge pull request #10 from dodinh/master
Browse files Browse the repository at this point in the history
For rm commands, supply path instead of hardcoding one location
  • Loading branch information
walkamongus authored Aug 29, 2016
2 parents 5d1b56d + a0f83ec commit 8d1a3ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion manifests/sssd/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
}

exec { 'force_config_cache_rebuild':
command => "/usr/bin/rm -f ${::realmd::sssd_config_cache_file}",
path => '/usr/bin:/usr/sbin:/bin',
command => "rm -f ${::realmd::sssd_config_cache_file}",
refreshonly => true,
}
}
Expand Down
3 changes: 2 additions & 1 deletion spec/classes/sssd__config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@

it do
should contain_exec('force_config_cache_rebuild').with({
'command' => '/usr/bin/rm -f /var/lib/sss/db/config.ldb',
'path' => '/usr/bin:/usr/sbin:/bin',
'command' => 'rm -f /var/lib/sss/db/config.ldb',
'refreshonly' => true,
})
end
Expand Down

0 comments on commit 8d1a3ad

Please sign in to comment.