users: Add a note about using separate first setup action

Instead of a separate action that is conditionally called for a version number,
we can check if the domain currently configured is what we want and then based
on the value do a reconfiguration. This approach will work better when Plinth
state is reset etc.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2017-12-14 11:41:41 +05:30
parent 87eecb7c62
commit 2d17f19ae2
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -95,6 +95,10 @@ def subcommand_first_setup(_):
"""Perform initial setup of LDAP."""
# Avoid reconfiguration of slapd during module upgrades, because
# this will move the existing database.
# XXX: Instead of a separate action that is conditionally called for a
# version number, we can check if the domain currently configured is what
# we want and then based on the value do a reconfiguration. This approach
# will work better when Plinth state is reset etc.
action_utils.dpkg_reconfigure('slapd', {'domain': 'thisbox'})