X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/35fd74af6dda33b85d7b575a695bc04aaf12e03a..8f3845660f18bdbf2dd42dd2c6db6c7fa5160f3e:/nominatim/tools/refresh.py diff --git a/nominatim/tools/refresh.py b/nominatim/tools/refresh.py index 43e5b1eb..008fc714 100644 --- a/nominatim/tools/refresh.py +++ b/nominatim/tools/refresh.py @@ -213,6 +213,10 @@ def _quote_php_variable(var_type: Type[Any], config: Configuration, def setup_website(basedir: Path, config: Configuration, conn: Connection) -> None: """ Create the website script stubs. """ + if config.lib_dir.php is None: + LOG.info("Python frontend does not require website setup. Skipping.") + return + if not basedir.exists(): LOG.info('Creating website directory.') basedir.mkdir()