mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
TODO create admin user from env vars
This commit is contained in:
parent
ac0f93ee10
commit
4f91af0ce9
1 changed files with 5 additions and 0 deletions
|
@ -406,6 +406,11 @@ def init(force: bool=False, quick: bool=False, setup: bool=False, out_dir: Path=
|
||||||
if existing_index:
|
if existing_index:
|
||||||
print('{green}[√] Done. Verified and updated the existing ArchiveBox collection.{reset}'.format(**ANSI))
|
print('{green}[√] Done. Verified and updated the existing ArchiveBox collection.{reset}'.format(**ANSI))
|
||||||
else:
|
else:
|
||||||
|
# TODO: allow creating new supersuer via env vars on first init
|
||||||
|
# if config.HTTP_USER and config.HTTP_PASS:
|
||||||
|
# from django.contrib.auth.models import User
|
||||||
|
# User.objects.create_superuser(HTTP_USER, '', HTTP_PASS)
|
||||||
|
|
||||||
print('{green}[√] Done. A new ArchiveBox collection was initialized ({} links).{reset}'.format(len(all_links) + len(pending_links), **ANSI))
|
print('{green}[√] Done. A new ArchiveBox collection was initialized ({} links).{reset}'.format(len(all_links) + len(pending_links), **ANSI))
|
||||||
|
|
||||||
json_index = out_dir / JSON_INDEX_FILENAME
|
json_index = out_dir / JSON_INDEX_FILENAME
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue