Skip to content

Commit aba7c11

Browse files
authored
Merge pull request #864 from UN-OCHA/release-versions/v1.6.4
release versions/v1.6.4
2 parents 65d7612 + 7926985 commit aba7c11

File tree

71 files changed

+2487
-267
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+2487
-267
lines changed

.docksal/commands/solr

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# $SOLR_PORT -- (integer) the port
1616
# $SOLR_CORE -- (string) the core name
1717

18-
usage="$(basename "$0") [-h] create-core|index|dashboard
18+
usage="$(basename "$0") [-h] create-core|cleanup|index|dashboard
1919
2020
where:
2121
-h show this help text"
@@ -29,6 +29,9 @@ while [ "$1" != "" ]; do
2929
create-core ) shift
3030
fin solr-commands/create-core
3131
;;
32+
cleanup ) shift
33+
fin solr-commands/cleanup
34+
;;
3235
index ) shift
3336
fin drush search-api:index solr --batch-size=1
3437
;;
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
3+
## Cleanup the solr core data.
4+
5+
# Environment variables passed from fin:
6+
#
7+
# $PROJECT_ROOT - (string) absolute path to NEAREST .docksal folder
8+
# $VIRTUAL_HOST - (string) ex. projectname.docksal
9+
# $DOCROOT - name of the docroot folder
10+
# $DOCKER_RUNNING - (string) "true" or "false"
11+
# $SOLR_HOST -- (string) the hostname
12+
# $SOLR_PORT -- (integer) the port
13+
# $SOLR_CORE -- (string) the core name
14+
15+
fin exec --in=solr "solr delete -c $SOLR_CORE -p $SOLR_PORT"

0 commit comments

Comments
 (0)