mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 00:31:56 -06:00
ipatests: Stop sssd service before deleting the cache
In the integration tests, we do not stop the sssd service before deleting the cache, but rather start it. We need to stop sssd before deleting the cache. Reviewed-By: Nathaniel McCallum <npmccallum@redhat.com>
This commit is contained in:
parent
99facb753a
commit
daf2d64f83
@ -399,9 +399,9 @@ def clear_sssd_cache(host):
|
||||
systemd_available = host.transport.file_exists('/bin/systemctl')
|
||||
|
||||
if systemd_available:
|
||||
host.run_command(['systemctl', 'start', 'sssd'])
|
||||
host.run_command(['systemctl', 'stop', 'sssd'])
|
||||
else:
|
||||
host.run_command(['/sbin/service', 'sssd', 'start'])
|
||||
host.run_command(['/sbin/service', 'sssd', 'stop'])
|
||||
|
||||
host.run_command("find /var/lib/sss/db -name '*.ldb' | "
|
||||
"xargs rm -fv")
|
||||
|
Loading…
Reference in New Issue
Block a user