Add option to create initial superuser (#323)

* Add option to create initial superuser

* Update .env.sample
This commit is contained in:
Sascha Ißbrücker
2022-09-04 08:08:15 +02:00
committed by GitHub
parent 5841ba0f4c
commit f88cc30b48
5 changed files with 112 additions and 0 deletions

View File

@@ -10,6 +10,8 @@ mkdir -p data
python manage.py migrate
# Generate secret key file if it does not exist
python manage.py generate_secret_key
# Create initial superuser if defined in options / environment variables
python manage.py create_initial_superuser
# Ensure the DB folder is owned by the right user
chown -R www-data: /etc/linkding/data