mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-14 11:06:13 +05:00
Allow install flag through root guard
This commit is contained in:
parent
a975f40156
commit
1de618cdd0
@ -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)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "archivebox",
|
||||
"version": "0.9.31rc13",
|
||||
"version": "0.9.31rc14",
|
||||
"repository": "github:ArchiveBox/ArchiveBox",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
||||
@ -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"}]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user