Create data directories in docker entry point if they don't exist

This commit is contained in:
Alejandro Celaya
2024-01-03 19:22:33 +01:00
parent 9bdbb59401
commit 554b948775
4 changed files with 22 additions and 5 deletions

View File

@@ -3,6 +3,9 @@ set -e
cd /etc/shlink
# Create data directories if they do not exist. This allows data dir to be mounted as an empty dir if needed
mkdir -p data/cache data/locks data/log data/proxies
flags="--no-interaction --clear-db-cache"
# Skip downloading GeoLite2 db file if the license key env var was not defined or skipping was explicitly set