From 746713eb9f23fdcd445d85ca2061ff54977a835f Mon Sep 17 00:00:00 2001 From: Disassembler Date: Mon, 23 Mar 2020 10:10:57 +0100 Subject: [PATCH] Work with ${LAYERS_DIR} bit more predictably --- lxc-apps/ckan/install.sh | 3 ++- lxc-apps/crisiscleanup/install.sh | 3 ++- lxc-apps/cts/install.sh | 3 ++- lxc-apps/decidim/install.sh | 3 ++- lxc-apps/openmapkit/install.sh | 3 ++- lxc-apps/sahana-demo/install.sh | 5 +++-- lxc-apps/sahana/install.sh | 3 ++- lxc-apps/sambro/install.sh | 5 +++-- 8 files changed, 18 insertions(+), 10 deletions(-) diff --git a/lxc-apps/ckan/install.sh b/lxc-apps/ckan/install.sh index 2b28400..a4dbc1e 100755 --- a/lxc-apps/ckan/install.sh +++ b/lxc-apps/ckan/install.sh @@ -6,6 +6,7 @@ POSTGRES_DATA="${VOLUMES_DIR}/ckan/postgres_data" REDIS_CONF="${VOLUMES_DIR}/ckan/redis_conf" REDIS_DATA="${VOLUMES_DIR}/ckan/redis_data" SOLR_DATA="${VOLUMES_DIR}/ckan/solr_data" +SOLR_LAYER="${LAYERS_DIR}/solr6_6.5.1-200313" DATAPUSHER_CONF="${VOLUMES_DIR}/ckan/datapusher_conf" DATAPUSHER_DATA="${VOLUMES_DIR}/ckan/datapusher_data" CKAN_CONF="${VOLUMES_DIR}/ckan/ckan_conf" @@ -33,7 +34,7 @@ spoc-container start ckan-redis # Configure Solr install -o 108983 -g 108983 -m 750 -d ${SOLR_DATA} -install -o 108983 -g 108983 -m 640 ${LAYERS_DIR}/solr6_6.5.1-200313/opt/solr/server/solr/solr.xml ${SOLR_DATA}/solr.xml +cp -p ${SOLR_LAYER}/opt/solr/server/solr/solr.xml ${SOLR_DATA}/solr.xml spoc-container start ckan-solr # Configure CKAN Solr core diff --git a/lxc-apps/crisiscleanup/install.sh b/lxc-apps/crisiscleanup/install.sh index 54902d2..8b08a2c 100755 --- a/lxc-apps/crisiscleanup/install.sh +++ b/lxc-apps/crisiscleanup/install.sh @@ -4,6 +4,7 @@ set -ev # Volumes POSTGRES_DATA="${VOLUMES_DIR}/crisiscleanup/postgres_data" CC_CONF="${VOLUMES_DIR}/crisiscleanup/cc_conf" +CC_LAYER="${LAYERS_DIR}/crisiscleanup_2.2.0-200313" # Create Postgres instance install -o 105432 -g 105432 -m 700 -d ${POSTGRES_DATA} @@ -19,7 +20,7 @@ spoc-container start crisiscleanup-postgres envsubst