Merge pull request #99 from linuxserver/env-check

Check for zero length .env on startup
This commit is contained in:
aptalca 2021-06-07 11:54:42 -04:00 committed by GitHub
commit ea2b9b9525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 \