mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
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:
parent
054a3744d5
commit
b86f3ff675
@ -370,9 +370,10 @@ def subcommand_get_group_users(arguments):
|
|||||||
|
|
||||||
|
|
||||||
def flush_cache():
|
def flush_cache():
|
||||||
"""Flush nscd cache."""
|
"""Flush nscd and apache2 cache."""
|
||||||
_run(['nscd', '--invalidate=passwd'])
|
_run(['nscd', '--invalidate=passwd'])
|
||||||
_run(['nscd', '--invalidate=group'])
|
_run(['nscd', '--invalidate=group'])
|
||||||
|
action_utils.service_reload('apache2')
|
||||||
|
|
||||||
|
|
||||||
def _run(arguments, **kwargs):
|
def _run(arguments, **kwargs):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user