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 authored and James Valleroy committed 2019-10-20 11:50:36 -04:00
1 parent 054a3744d5
commit b86f3ff675
1 file changed
+2 -1
+2 -1
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):