mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +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):
|
def setup(helper, old_version=None):
|
||||||
"""Install and configure the module."""
|
"""Install and configure the module."""
|
||||||
helper.install(managed_packages)
|
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', ['first-setup'])
|
||||||
helper.call('post', actions.superuser_run, 'users', ['setup'])
|
helper.call('post', actions.superuser_run, 'users', ['setup'])
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user