We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a632c22 commit 6323d87Copy full SHA for 6323d87
docker-entrypoint.sh
@@ -14,9 +14,14 @@ then
14
fi
15
16
# Create search index if not exists
17
-if [ ! -f /app/indexdir/search_index.db ] && [ "${GRAMPSWEB_TREE}" != "*" ];
18
-then
19
- python3 -m gramps_webapi --config /app/config/config.cfg search index-full
+if [ ! -f /app/indexdir/search_index.db ]; then
+ if [ "${GRAMPSWEB_TREE}" = "*" ]; then
+ for GRAMPSWEB_TREE in $(python3 -m gramps_webapi --config /app/config/config.cfg tree list | awk '{print $1;}' | grep -v Tree); do
20
+ python3 -m gramps_webapi --config /app/config/config.cfg search index-full;
21
+ done
22
+ else
23
24
+ fi
25
26
27
# Run migrations for user database, if any
0 commit comments