mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
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:
parent
87eecb7c62
commit
2d17f19ae2
@ -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'})
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user