diff --git a/src/wuttapos/install.py b/src/wuttapos/install.py index e140fd4..287e544 100644 --- a/src/wuttapos/install.py +++ b/src/wuttapos/install.py @@ -104,6 +104,9 @@ class InstallHandler(base.InstallHandler): # remember the answer 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 self.check_appdir() @@ -138,14 +141,14 @@ class InstallHandler(base.InstallHandler): [sys.executable, "-m", "pip", "install", "WuttaPOS[terminal]"] ) - def get_dbinfo(self): + def get_db_url(self): 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): - context = super().make_template_context(dbinfo, **kwargs) + def make_template_context(self, **kwargs): + context = super().make_template_context(**kwargs) context["install_type"] = self.install_type context["store_id"] = self.store_id