mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #992] How to create superuser from within a bash script #617
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#617
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
@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=xxxADMIN_PASSWORD=xxxenvironment 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