mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-12 02:41:02 +01:00
Update 99-run.sh
This commit is contained in:
@@ -11,6 +11,8 @@ exec redis-server & bashio::log.info "Starting redis"
|
||||
###############################
|
||||
# Origin : https://github.com/linuxserver/docker-paperless-ngx/blob/main/root/etc/cont-init.d/99-migrations
|
||||
|
||||
if [ ! -f /data/adminuser ]; then
|
||||
|
||||
# Store last line
|
||||
LASTLINE="$(tail -1 /usr/local/bin/paperless_cmd.sh)"
|
||||
|
||||
@@ -36,4 +38,9 @@ EOF" >> /usr/local/bin/paperless_cmd.sh
|
||||
# Restore last line
|
||||
echo "$LASTLINE" >> /usr/local/bin/paperless_cmd.sh
|
||||
|
||||
# Say admin created
|
||||
touch /data/adminuser
|
||||
|
||||
fi
|
||||
|
||||
bashio::log.info "Initial username and password are admin. Please change in the administration panel of the webUI after login."
|
||||
|
||||
Reference in New Issue
Block a user