dullage / flatnotes

A self-hosted, database-less note taking web app that utilises a flat folder of markdown files for storage.
MIT License
1.5k stars 87 forks source link

Entrypoint script fix for updated Flatnotes installs #179

Closed Code-Otto closed 6 months ago

Code-Otto commented 7 months ago

Fix for #178

Users updating Flatnotes Docker containers from an old version are facing startup crashes due to the newly introduced EXEC_TOOL environment variable being undefined in their originally older containers

Added the following default value definitions to the entrypoint.sh script:

[ "$EXEC_TOOL" ] || EXEC_TOOL=gosu
[ "$FLATNOTES_PORT" ] || FLATNOTES_PORT=8080

(I believe the new FLATNOTES_PORT envvar to be affected as well so also added it a default value)

You can read such code as «Either $VAR is already defined or we set it a default value»