Update 99-run.sh

This commit is contained in:
Alexandre
2022-11-11 10:30:35 +01:00
committed by GitHub
parent d61417e0e2
commit f6e021f11a

View File

@@ -9,7 +9,9 @@ exec redis-server & bashio::log.info "Starting redis"
###############################
# Create user if not existing #
###############################
# Origin : https://github.com/linuxserver/docker-paperless-ngx/blob/main/root/etc/cont-init.d/99-migrations
# Origin : https://github.com/linuxserver/docker-paperless-ngx/blob/main/root/etc/cont-init.d/99-migrations
bashio::net.wait_for 8000 localhost 900
bashio::log.info "Creating default user"
cat << EOF | python3 manage.py shell
from django.contrib.auth import get_user_model