Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add option to download ingredient images on startup

Roland Geider3ecb4b022630
diff --git a/extras/docker/development/entrypoint.sh b/extras/docker/development/entrypoint.sh
index 53557a961..5bc8d30f5 100644
--- a/extras/docker/development/entrypoint.sh
+++ b/extras/docker/development/entrypoint.sh
@@ -51,6 +51,13 @@ then
python3 manage.py download-exercise-images
fi
+# Download ingredient images
+if [[ "$DOWNLOAD_INGREDIENT_IMAGES_ON_STARTUP" == "True" ]];
+then
+ echo "Downloading ingredient images"
+ python3 manage.py download-ingredient-images
+fi
+
# Set the site URL
python3 manage.py set-site-url