[GH-ISSUE #992] How to create superuser from within a bash script #617

Closed
opened 2026-03-01 14:45:02 +03:00 by kerem · 1 comment
Owner

Originally created by @happening-primal on GitHub (Jun 20, 2022).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/992

Can you provide a suggestion on how to run 'archivebox manage createsuperuser' directly from within a bash script without the need to start a docker shell first using 'sudo docker exec -it --user archivebox archivebox /bin/bash' and also, if possible, how to just pass directly the userid, email, and password, so that the whole thing can just be managed from within said bash script?

Originally created by @happening-primal on GitHub (Jun 20, 2022). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/992 Can you provide a suggestion on how to run 'archivebox manage createsuperuser' directly from within a bash script without the need to start a docker shell first using 'sudo docker exec -it --user archivebox archivebox /bin/bash' and also, if possible, how to just pass directly the userid, email, and password, so that the whole thing can just be managed from within said bash script?
kerem closed this issue 2026-03-01 14:45:03 +03:00
Author
Owner

@pirate commented on GitHub (Jun 20, 2022):

Here are the instructions on how to script adding a user / modifying the DB directly: https://github.com/ArchiveBox/ArchiveBox/wiki/Upgrading-or-Merging-Archives#example-adding-a-new-user-with-a-hashed-password

We may add an ADMIN_USER=xxx ADMIN_PASSWORD=xxx environment variable in the future to automate setting those on initial setup, but those options don't exist yet. Follow this issue for progress: https://github.com/ArchiveBox/ArchiveBox/issues/734

<!-- gh-comment-id:1160774311 --> @pirate commented on GitHub (Jun 20, 2022): Here are the instructions on how to script adding a user / modifying the DB directly: https://github.com/ArchiveBox/ArchiveBox/wiki/Upgrading-or-Merging-Archives#example-adding-a-new-user-with-a-hashed-password We may add an `ADMIN_USER=xxx` `ADMIN_PASSWORD=xxx` environment variable in the future to automate setting those on initial setup, but those options don't exist yet. Follow this issue for progress: https://github.com/ArchiveBox/ArchiveBox/issues/734
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#617
No description provided.