mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-03 10:50:20 +00:00
users: Make sure first run actually works
During the first setup, older_version is sent as 0 instead of None. Make sure that is actually works by doing proper condition check. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
4506437927
commit
15f2e7d0c3
@ -57,7 +57,7 @@ def init():
|
||||
def setup(helper, old_version=None):
|
||||
"""Install and configure the module."""
|
||||
helper.install(managed_packages)
|
||||
if old_version is None:
|
||||
if not old_version:
|
||||
helper.call('post', actions.superuser_run, 'users', ['first-setup'])
|
||||
helper.call('post', actions.superuser_run, 'users', ['setup'])
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user