Skip to content

Commit

Permalink
Merge pull request #864 from UN-OCHA/release-versions/v1.6.4
Browse files Browse the repository at this point in the history
release versions/v1.6.4
  • Loading branch information
berliner authored Dec 7, 2023
2 parents 65d7612 + 7926985 commit aba7c11
Show file tree
Hide file tree
Showing 71 changed files with 2,487 additions and 267 deletions.
5 changes: 4 additions & 1 deletion .docksal/commands/solr
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# $SOLR_PORT -- (integer) the port
# $SOLR_CORE -- (string) the core name

usage="$(basename "$0") [-h] create-core|index|dashboard
usage="$(basename "$0") [-h] create-core|cleanup|index|dashboard
where:
-h show this help text"
Expand All @@ -29,6 +29,9 @@ while [ "$1" != "" ]; do
create-core ) shift
fin solr-commands/create-core
;;
cleanup ) shift
fin solr-commands/cleanup
;;
index ) shift
fin drush search-api:index solr --batch-size=1
;;
Expand Down
15 changes: 15 additions & 0 deletions .docksal/commands/solr-commands/cleanup
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

## Cleanup the solr core data.

# Environment variables passed from fin:
#
# $PROJECT_ROOT - (string) absolute path to NEAREST .docksal folder
# $VIRTUAL_HOST - (string) ex. projectname.docksal
# $DOCROOT - name of the docroot folder
# $DOCKER_RUNNING - (string) "true" or "false"
# $SOLR_HOST -- (string) the hostname
# $SOLR_PORT -- (integer) the port
# $SOLR_CORE -- (string) the core name

fin exec --in=solr "solr delete -c $SOLR_CORE -p $SOLR_PORT"
Loading

0 comments on commit aba7c11

Please sign in to comment.