mirror of
https://github.com/linuxserver/docker-bookstack.git
synced 2026-02-20 02:30:30 +08:00
Merge pull request #99 from linuxserver/env-check
Check for zero length .env on startup
This commit is contained in:
commit
ea2b9b9525
@ -8,6 +8,10 @@ mkdir -p \
|
||||
[[ ! -f "/config/www/.env" ]] && \
|
||||
cp /var/www/html/.env.example /config/www/.env
|
||||
|
||||
# check for zero-length .env and alert user if found
|
||||
[[ ! -s "/config/www/.env" ]] && \
|
||||
echo "WARNING: zero-length .env file detected. Please delete /config/www/.env and restart the container"
|
||||
|
||||
# create symlinks
|
||||
symlinks=( \
|
||||
/var/www/html/storage/uploads/files \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user