diff --git a/root/etc/cont-init.d/50-config b/root/etc/cont-init.d/50-config index 3c999b4..0dd0e6f 100644 --- a/root/etc/cont-init.d/50-config +++ b/root/etc/cont-init.d/50-config @@ -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 \