users: reload Apache2 to flush LDAP cache after user operations

Fixes #1660

Signed-off-by: Veiko Aasa veiko17@disroot.org
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Veiko Aasa 2019-10-15 20:23:07 +00:00 committed by James Valleroy
parent 054a3744d5
commit b86f3ff675
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -370,9 +370,10 @@ def subcommand_get_group_users(arguments):
def flush_cache():
"""Flush nscd cache."""
"""Flush nscd and apache2 cache."""
_run(['nscd', '--invalidate=passwd'])
_run(['nscd', '--invalidate=group'])
action_utils.service_reload('apache2')
def _run(arguments, **kwargs):