Allow install flag through root guard

This commit is contained in:
Nick Sweeting 2026-05-23 16:21:08 -07:00
parent a975f40156
commit 1de618cdd0
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View File

@ -108,7 +108,7 @@ def check_not_root():
attempted_command = " ".join(sys.argv[1:]) if len(sys.argv) > 1 else ""
is_getting_help = "-h" in sys.argv or "--help" in sys.argv or "help" in sys.argv
is_getting_version = "--version" in sys.argv or "version" in sys.argv
is_installing = "setup" in sys.argv or "install" in sys.argv
is_installing = any(arg in sys.argv for arg in ("setup", "install", "--setup", "--install"))
if IS_ROOT and not (is_getting_help or is_getting_version or is_installing):
print("[red][!] ArchiveBox should never be run as root![/red]", file=sys.stderr)

View File

@ -1,6 +1,6 @@
{
"name": "archivebox",
"version": "0.9.31rc13",
"version": "0.9.31rc14",
"repository": "github:ArchiveBox/ArchiveBox",
"license": "MIT",
"dependencies": {

View File

@ -1,6 +1,6 @@
[project]
name = "archivebox"
version = "0.9.31rc13"
version = "0.9.31rc14"
requires-python = ">=3.13"
description = "Self-hosted internet archiving solution."
authors = [{name = "Nick Sweeting", email = "pyproject.toml@archivebox.io"}]