Default DATA_DIR in entrypoint to match VOLUME in the Dockerfile

Details are included in RELEASING.md for inclusion in the next set of
release notes.
This commit is contained in:
Dustin J. Mitchell 2025-07-09 14:41:28 +00:00
parent 953411bff8
commit 240d1b4df5
No known key found for this signature in database
2 changed files with 53 additions and 1 deletions

View file

@ -2,7 +2,7 @@
set -e
echo "starting entrypoint script..."
if [ "$1" = "/bin/taskchampion-sync-server" ]; then
: ${DATA_DIR:=/var/lib/taskchampion-sync-server}
: ${DATA_DIR:=/var/lib/taskchampion-sync-server/data}
export DATA_DIR
echo "setting up data directory ${DATA_DIR}"
mkdir -p "${DATA_DIR}"