exec archivebox from docker entrypoint script to avoid nesting pid under bash

This commit is contained in:
Nick Sweeting 2021-02-16 01:22:36 -05:00
parent 10d687c55c
commit 19f7c907e0
2 changed files with 5 additions and 2 deletions

View file

@ -1086,5 +1086,6 @@ def setup_django(out_dir: Path=None, check_db=False, config: ConfigDict=CONFIG,
sql_index_path = Path(output_dir) / SQL_INDEX_FILENAME
assert sql_index_path.exists(), (
f'No database file {SQL_INDEX_FILENAME} found in: {config["OUTPUT_DIR"]} (Are you in an ArchiveBox collection directory?)')
except KeyboardInterrupt:
raise SystemExit(2)