rename archivebox setup to archivebox install

This commit is contained in:
Nick Sweeting 2024-09-30 23:19:11 -07:00
parent 4334c74548
commit 8c3342afe5
No known key found for this signature in database
5 changed files with 26 additions and 27 deletions

View file

@ -81,7 +81,7 @@ class ShellConfig(BaseConfigSet):
@model_validator(mode='after')
def validate_not_running_as_root(self):
attempted_command = ' '.join(sys.argv[:3])
if self.PUID == 0 and attempted_command != 'setup':
if self.PUID == 0 and attempted_command not in ('setup', 'install'):
# stderr('[!] ArchiveBox should never be run as root!', color='red')
# stderr(' For more information, see the security overview documentation:')
# stderr(' https://github.com/ArchiveBox/ArchiveBox/wiki/Security-Overview#do-not-run-as-root')