fix: tweak installer slightly, per upstream changes
This commit is contained in:
parent
4f86c4bcaa
commit
bf6494f2a9
1 changed files with 8 additions and 5 deletions
|
|
@ -104,6 +104,9 @@ class InstallHandler(base.InstallHandler):
|
||||||
# remember the answer
|
# remember the answer
|
||||||
self.install_type = install_type
|
self.install_type = install_type
|
||||||
|
|
||||||
|
# and skip the continuum prompt
|
||||||
|
self.wants_continuum = install_type == "server"
|
||||||
|
|
||||||
# now we can check the app dir; do this before further questions
|
# now we can check the app dir; do this before further questions
|
||||||
self.check_appdir()
|
self.check_appdir()
|
||||||
|
|
||||||
|
|
@ -138,14 +141,14 @@ class InstallHandler(base.InstallHandler):
|
||||||
[sys.executable, "-m", "pip", "install", "WuttaPOS[terminal]"]
|
[sys.executable, "-m", "pip", "install", "WuttaPOS[terminal]"]
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_dbinfo(self):
|
def get_db_url(self):
|
||||||
if self.alongside:
|
if self.alongside:
|
||||||
return {"dburl": self.config.appdb_engine.url}
|
return self.config.appdb_engine.url
|
||||||
|
|
||||||
return super().get_dbinfo()
|
return super().get_db_url()
|
||||||
|
|
||||||
def make_template_context(self, dbinfo, **kwargs):
|
def make_template_context(self, **kwargs):
|
||||||
context = super().make_template_context(dbinfo, **kwargs)
|
context = super().make_template_context(**kwargs)
|
||||||
|
|
||||||
context["install_type"] = self.install_type
|
context["install_type"] = self.install_type
|
||||||
context["store_id"] = self.store_id
|
context["store_id"] = self.store_id
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue