mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-10 06:34:16 +00:00
Update main.py
This commit is contained in:
parent
f9c82841ad
commit
c752c7053d
1 changed files with 3 additions and 4 deletions
|
@ -209,8 +209,6 @@ def help(out_dir: Path=OUTPUT_DIR) -> None:
|
||||||
def version(quiet: bool=False,
|
def version(quiet: bool=False,
|
||||||
out_dir: Path=OUTPUT_DIR) -> None:
|
out_dir: Path=OUTPUT_DIR) -> None:
|
||||||
"""Print the ArchiveBox version and dependency information"""
|
"""Print the ArchiveBox version and dependency information"""
|
||||||
|
|
||||||
from django.conf import settings
|
|
||||||
|
|
||||||
if quiet:
|
if quiet:
|
||||||
print(VERSION)
|
print(VERSION)
|
||||||
|
@ -226,13 +224,14 @@ def version(quiet: bool=False,
|
||||||
platform.platform(),
|
platform.platform(),
|
||||||
p.machine,
|
p.machine,
|
||||||
)
|
)
|
||||||
|
fs_is_mount = os.path.ismount(ARCHIVE_DIR)
|
||||||
print(
|
print(
|
||||||
f'IN_DOCKER={IN_DOCKER}',
|
f'IN_DOCKER={IN_DOCKER}',
|
||||||
f'DEBUG={DEBUG}',
|
f'DEBUG={DEBUG}',
|
||||||
f'IS_TTY={IS_TTY}',
|
f'IS_TTY={IS_TTY}',
|
||||||
f'TZ={TIMEZONE}',
|
f'TZ={TIMEZONE}',
|
||||||
f'DB={settings.DATABASES["default"]["engine"]} (({CONFIG["SQLITE_JOURNAL_MODE"]} {CONFIG["SQLITE_EXTENSIONS"]})',
|
f'DB=django.db.backends.sqlite3 (({CONFIG["SQLITE_JOURNAL_MODE"]})',
|
||||||
f'FS={"atomic" if ENFORCE_ATOMIC_WRITES else "non-atomic"} {PUID}:{PGID} ({OUTPUT_PERMISSIONS})',
|
f'FS={"remote" if fs_is_mount else "local" {"atomic" if ENFORCE_ATOMIC_WRITES else "non-atomic"} {PUID}:{PGID} ({OUTPUT_PERMISSIONS})',
|
||||||
f'SEARCH_BACKEND_ENGINE={SEARCH_BACKEND_ENGINE}',
|
f'SEARCH_BACKEND_ENGINE={SEARCH_BACKEND_ENGINE}',
|
||||||
)
|
)
|
||||||
print()
|
print()
|
||||||
|
|
Loading…
Reference in a new issue